diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-22 12:42:43 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-22 15:25:07 -0500 |
commit | c08c9f68cf14c950824f22a6f24056ea417b5940 (patch) | |
tree | 27395af17953700102d0a7eed74e7b95a3b7eea5 /src/providers/ipa/ipa_common.c | |
parent | 5887e84f23371b2fbe56a9c998d3e06a897d8521 (diff) | |
download | sssd-c08c9f68cf14c950824f22a6f24056ea417b5940.tar.gz sssd-c08c9f68cf14c950824f22a6f24056ea417b5940.tar.xz sssd-c08c9f68cf14c950824f22a6f24056ea417b5940.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.
Diffstat (limited to 'src/providers/ipa/ipa_common.c')
-rw-r--r-- | src/providers/ipa/ipa_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c index b748289bc..94e436743 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 = |