diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2012-02-29 15:02:44 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-01 10:03:49 -0500 |
commit | e840b9da42d696eb86307c641f5196f12ec4b9c4 (patch) | |
tree | c0777427b4194f470f0a920f6566fd12e1701bc1 /src/providers/ipa | |
parent | 55fcd37c086f699db1aeac54a3df046b60755ff6 (diff) | |
download | sssd-e840b9da42d696eb86307c641f5196f12ec4b9c4.tar.gz sssd-e840b9da42d696eb86307c641f5196f12ec4b9c4.tar.xz sssd-e840b9da42d696eb86307c641f5196f12ec4b9c4.zip |
IPA: Set the DNS discovery domain to match ipa_domain
https://fedorahosted.org/sssd/ticket/1217
Diffstat (limited to 'src/providers/ipa')
-rw-r--r-- | src/providers/ipa/ipa_common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c index fc909deea..72d7c65c1 100644 --- a/src/providers/ipa/ipa_common.c +++ b/src/providers/ipa/ipa_common.c @@ -958,6 +958,7 @@ int ipa_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx, struct ipa_service *service; char **list = NULL; char *realm; + char *ipa_domain; int ret; int i; @@ -1031,7 +1032,8 @@ int ipa_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx, talloc_steal(service, list[i]); if (be_fo_is_srv_identifier(list[i])) { - ret = be_fo_add_srv_server(ctx, "IPA", "ldap", + ipa_domain = dp_opt_get_string(options->basic, IPA_DOMAIN); + ret = be_fo_add_srv_server(ctx, "IPA", "ldap", ipa_domain, BE_FO_PROTO_TCP, false, NULL); if (ret) { DEBUG(0, ("Failed to add server\n")); |