diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-21 11:29:37 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-22 10:20:52 -0500 |
commit | 6d187fbd294222f6bdc692860c99ac372124fb4a (patch) | |
tree | 710b1a392fafb1920412ae444d7f9ead30acc52e /src/providers/ipa/ipa_init.c | |
parent | d4c03877be9ab14484c766672cd9e48997a4d5f3 (diff) | |
download | sssd-6d187fbd294222f6bdc692860c99ac372124fb4a.tar.gz sssd-6d187fbd294222f6bdc692860c99ac372124fb4a.tar.xz sssd-6d187fbd294222f6bdc692860c99ac372124fb4a.zip |
Allow krb5_realm to override ipa_domain
It is possible to set up FreeIPA servers where the Kerberos realm
differs from the IPA domain name. We need to allow setting the
krb5_realm explicitly to handle this.
Diffstat (limited to 'src/providers/ipa/ipa_init.c')
-rw-r--r-- | src/providers/ipa/ipa_init.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/providers/ipa/ipa_init.c b/src/providers/ipa/ipa_init.c index 27e0a11fe..8f7d4d61f 100644 --- a/src/providers/ipa/ipa_init.c +++ b/src/providers/ipa/ipa_init.c @@ -61,7 +61,6 @@ struct bet_ops ipa_access_ops = { int common_ipa_init(struct be_ctx *bectx) { const char *ipa_servers; - const char *ipa_domain; int ret; ret = ipa_get_options(bectx, bectx->cdb, @@ -76,13 +75,7 @@ int common_ipa_init(struct be_ctx *bectx) DEBUG(1, ("Missing ipa_server option - using service discovery!\n")); } - ipa_domain = dp_opt_get_string(ipa_options->basic, IPA_DOMAIN); - if (!ipa_domain) { - DEBUG(0, ("Missing ipa_domain option!\n")); - return EINVAL; - } - - ret = ipa_service_init(ipa_options, bectx, ipa_servers, ipa_domain, + ret = ipa_service_init(ipa_options, bectx, ipa_servers, ipa_options, &ipa_options->service); if (ret != EOK) { DEBUG(0, ("Failed to init IPA failover service!\n")); |