summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_common.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-04-29 09:52:28 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-04-29 11:36:56 -0400
commit5f0838ccee6c27e784cc9ac80b2dc153769fbe10 (patch)
treef1a74e13d016e293c9759a92801147e5dc4ecc09 /src/providers/ipa/ipa_common.c
parent80cd599e8c3e0cd53c2b475a05c83ce98ae661d0 (diff)
downloadsssd2-5f0838ccee6c27e784cc9ac80b2dc153769fbe10.tar.gz
sssd2-5f0838ccee6c27e784cc9ac80b2dc153769fbe10.tar.xz
sssd2-5f0838ccee6c27e784cc9ac80b2dc153769fbe10.zip
Fix segfault in IPA provider
We were trying to request the krb5 keytab from the auth provider configuration, but it hasn't yet been set up. Much better to use the value in the ID provider.
Diffstat (limited to 'src/providers/ipa/ipa_common.c')
-rw-r--r--src/providers/ipa/ipa_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c
index 3894971b..9e42423f 100644
--- a/src/providers/ipa/ipa_common.c
+++ b/src/providers/ipa/ipa_common.c
@@ -362,8 +362,8 @@ int ipa_get_id_options(struct ipa_options *ipa_opts,
}
ret = select_principal_from_keytab(tmpctx,
- dp_opt_get_string(ipa_opts->auth,
- KRB5_KEYTAB),
+ dp_opt_get_string(ipa_opts->id->basic,
+ SDAP_KRB5_KEYTAB),
desired_primary, desired_realm,
NULL, &primary, &realm);
if (ret != EOK) {