From 6d99c0f5616969a999d78248565a47b18d40d472 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 25 Jul 2011 16:55:34 +0200 Subject: IPA migration fixes * use the id connection for looking up the migration flag * force TLS on the password based authentication connection https://fedorahosted.org/sssd/ticket/924 --- src/providers/ipa/ipa_init.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/providers/ipa/ipa_init.c') diff --git a/src/providers/ipa/ipa_init.c b/src/providers/ipa/ipa_init.c index 9fbca3ae4..57b4180cc 100644 --- a/src/providers/ipa/ipa_init.c +++ b/src/providers/ipa/ipa_init.c @@ -208,8 +208,10 @@ int sssm_ipa_auth_init(struct be_ctx *bectx, void **pvt_data) { struct ipa_auth_ctx *ipa_auth_ctx; + struct ipa_id_ctx *id_ctx; struct krb5_ctx *krb5_auth_ctx; struct sdap_auth_ctx *sdap_auth_ctx; + struct bet_ops *id_ops; FILE *debug_filep; unsigned v; int ret; @@ -234,6 +236,13 @@ int sssm_ipa_auth_init(struct be_ctx *bectx, } ipa_options->auth_ctx = ipa_auth_ctx; + ret = sssm_ipa_id_init(bectx, &id_ops, (void **) &id_ctx); + if (ret != EOK) { + DEBUG(1, ("sssm_ipa_id_init failed.\n")); + goto done; + } + ipa_auth_ctx->sdap_id_ctx = id_ctx->sdap_id_ctx; + ret = dp_copy_options(ipa_auth_ctx, ipa_options->basic, IPA_OPTS_BASIC, &ipa_auth_ctx->ipa_options); if (ret != EOK) { -- cgit