diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-07-25 16:55:34 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-11-29 14:21:07 -0500 |
commit | 6d99c0f5616969a999d78248565a47b18d40d472 (patch) | |
tree | c3adaba5f0535cdf8dbeb442a439632edf35c9d3 /src/providers/ipa/ipa_init.c | |
parent | 9b9c7f8caddf2b57adfbef8741651ee5063fa3bd (diff) | |
download | sssd-6d99c0f5616969a999d78248565a47b18d40d472.tar.gz sssd-6d99c0f5616969a999d78248565a47b18d40d472.tar.xz sssd-6d99c0f5616969a999d78248565a47b18d40d472.zip |
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
Diffstat (limited to 'src/providers/ipa/ipa_init.c')
-rw-r--r-- | src/providers/ipa/ipa_init.c | 9 |
1 files changed, 9 insertions, 0 deletions
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) { |