summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_subdomains.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2016-07-05 11:25:59 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-07-06 19:12:11 +0200
commite6b6b9fa79c67d7d2698bc7e33d2e2f6bb53d483 (patch)
tree38c612b250ea454debd1c037440b795f451a32ef /src/providers/ipa/ipa_subdomains.c
parentd278822ab3ab18f2c5b012cd055f01f06e687e49 (diff)
downloadsssd-e6b6b9fa79c67d7d2698bc7e33d2e2f6bb53d483.tar.gz
sssd-e6b6b9fa79c67d7d2698bc7e33d2e2f6bb53d483.tar.xz
sssd-e6b6b9fa79c67d7d2698bc7e33d2e2f6bb53d483.zip
IPA/AD: globally set krb5 canonicalization flag
If Kerberos principal canonicalization is configured in SSSD, currently it is the default for the IPA provider, a configuration snippet is generated for the system-wide libkrb5 configuration so that all kerberized applications will use canonicalization by default. Resolves https://fedorahosted.org/sssd/ticket/3041 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers/ipa/ipa_subdomains.c')
-rw-r--r--src/providers/ipa/ipa_subdomains.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index cb443db9c..a02a65d97 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -76,8 +76,11 @@ ipa_subdom_reinit(struct ipa_subdomains_ctx *ctx)
"Re-initializing domain %s\n", ctx->be_ctx->domain->name);
ret = sss_write_krb5_conf_snippet(
- dp_opt_get_string(ctx->ipa_id_ctx->ipa_options->basic,
- IPA_KRB5_CONFD_PATH));
+ dp_opt_get_string(ctx->ipa_id_ctx->ipa_options->basic,
+ IPA_KRB5_CONFD_PATH),
+ dp_opt_get_bool(
+ ctx->ipa_id_ctx->ipa_options->auth_ctx->krb5_auth_ctx->opts,
+ KRB5_CANONICALIZE));
if (ret != EOK) {
DEBUG(SSSDBG_MINOR_FAILURE, "sss_write_krb5_conf_snippet failed.\n");
/* Just continue */