summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-02-22 12:42:43 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-02-22 15:21:47 -0500
commit9bd24b75f3252817addc052673959bde7cad5ebc (patch)
tree033b8c8e9f1ef9aa1ecb81e301e587c1d75f6b51
parent318f12c90208971a5b6d3574f0026601161d81c7 (diff)
downloadsssd-9bd24b75f3252817addc052673959bde7cad5ebc.tar.gz
sssd-9bd24b75f3252817addc052673959bde7cad5ebc.tar.bz2
sssd-9bd24b75f3252817addc052673959bde7cad5ebc.zip
Add krb5_realm to the basic IPA options
Previously, this was only handled by the internal LDAP and Kerberos providers, but this wasn't available early enough to properly handle setting up the krb5_service for failover and creating the krb5info files.
-rw-r--r--src/providers/ipa/ipa_common.c5
-rw-r--r--src/providers/ipa/ipa_common.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c
index b748289b..94e43674 100644
--- a/src/providers/ipa/ipa_common.c
+++ b/src/providers/ipa/ipa_common.c
@@ -35,7 +35,8 @@ struct dp_option ipa_basic_opts[] = {
{ "ipa_hostname", DP_OPT_STRING, NULL_STRING, NULL_STRING },
{ "ipa_dyndns_update", DP_OPT_BOOL, BOOL_FALSE, BOOL_FALSE },
{ "ipa_dyndns_iface", DP_OPT_STRING, NULL_STRING, NULL_STRING},
- { "ipa_hbac_search_base", DP_OPT_STRING, NULL_STRING, NULL_STRING}
+ { "ipa_hbac_search_base", DP_OPT_STRING, NULL_STRING, NULL_STRING},
+ { "krb5_realm", DP_OPT_STRING, NULL_STRING, NULL_STRING}
};
struct dp_option ipa_def_ldap_opts[] = {
@@ -642,7 +643,7 @@ int ipa_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx,
service->sdap->kinit_service_name = service->krb5_service->name;
/* First check whether the realm has been manually specified */
- realm = dp_opt_get_string(options->id->basic, SDAP_KRB5_REALM);
+ realm = dp_opt_get_string(options->basic, IPA_KRB5_REALM);
if (realm) {
/* krb5_realm exists in the configuration, use it */
service->krb5_service->realm =
diff --git a/src/providers/ipa/ipa_common.h b/src/providers/ipa/ipa_common.h
index 85f22e8d..588aa63e 100644
--- a/src/providers/ipa/ipa_common.h
+++ b/src/providers/ipa/ipa_common.h
@@ -49,6 +49,7 @@ enum ipa_basic_opt {
IPA_DYNDNS_UPDATE,
IPA_DYNDNS_IFACE,
IPA_HBAC_SEARCH_BASE,
+ IPA_KRB5_REALM,
IPA_OPTS_BASIC /* opts counter */
};