summaryrefslogtreecommitdiffstats
path: root/src/providers/fail_over.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-01-17 15:14:20 -0500
committerStephen Gallagher <sgallagh@redhat.com>2011-01-21 16:20:14 -0500
commit9917b96e31df3fa992d235a050ed1dc0e9939b3d (patch)
tree3b375372839cbf955d451e598b94fc0ec9c0fb8c /src/providers/fail_over.h
parentca2bc5f78bd04a20085e709717c085a84ae120c0 (diff)
downloadsssd-9917b96e31df3fa992d235a050ed1dc0e9939b3d.tar.gz
sssd-9917b96e31df3fa992d235a050ed1dc0e9939b3d.tar.xz
sssd-9917b96e31df3fa992d235a050ed1dc0e9939b3d.zip
Allow fallback to SSSD domain
For backwards-compatibility with older versions of the SSSD (such as 1.2.x), we need to be able to have our DNS SRV record lookup be capable of falling back to using the SSSD domain name as the DNS discovery domain. This patch modifies our DNS lookups so that they behave as follows: If dns_discovery_domain is specified, it is considered authoritative. No other discovery domains will be attempted. If dns_discovery_domain is not specified, we first attempt to look up the SRV records using the domain portion of the machine's hostname. If this returns "NOTFOUND", we will try performing an SRV record query using the SSSD domain name as the DNS discovery domain. https://fedorahosted.org/sssd/ticket/754
Diffstat (limited to 'src/providers/fail_over.h')
-rw-r--r--src/providers/fail_over.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/fail_over.h b/src/providers/fail_over.h
index dce02dc60..6a3101fed 100644
--- a/src/providers/fail_over.h
+++ b/src/providers/fail_over.h
@@ -116,7 +116,8 @@ int fo_add_server(struct fo_service *service,
int fo_add_srv_server(struct fo_service *service,
const char *srv,
- const char *domain,
+ const char *dns_domain,
+ const char *sssd_domain,
const char *proto,
void *user_data);