From 2f24f15e7f5464755995831ca920b2bcdffd398e Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 21 Feb 2011 11:29:37 -0500 Subject: 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. --- src/providers/ipa/ipa_init.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (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 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")); -- cgit