summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-11-20 11:31:29 +0100
committerAndrew Bartlett <abartlet@samba.org>2014-12-18 06:47:40 +0100
commit7f00fcf5589fc0e27ddd1f78fbe9c223b26cd919 (patch)
treec2305dc60973c1812b5b39eeff600add5f212bcf /source3/libads
parent3ab2aa2511769ec2b32b1e80093b28a532693ae6 (diff)
downloadsamba-7f00fcf5589fc0e27ddd1f78fbe9c223b26cd919.tar.gz
addns: Remove support for dns_host_file.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index c774b445411..93d5c791bf0 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -539,7 +539,6 @@ ADS_STATUS ads_connect_gc(ADS_STRUCT *ads)
int i;
bool done = false;
char *sitename = NULL;
- const char *dns_hosts_file;
if (!realm)
realm = lp_realm();
@@ -549,7 +548,6 @@ ADS_STATUS ads_connect_gc(ADS_STRUCT *ads)
sitename = sitename_fetch(frame, realm);
}
- dns_hosts_file = lp_parm_const_string(-1, "resolv", "host file", NULL);
do {
/* We try once with a sitename and once without
(unless we don't have a sitename and then we're
@@ -558,9 +556,11 @@ ADS_STATUS ads_connect_gc(ADS_STRUCT *ads)
if (sitename == NULL)
done = true;
- nt_status = ads_dns_query_gcs(frame, dns_hosts_file,
- realm, sitename,
- &gcs_list, &num_gcs);
+ nt_status = ads_dns_query_gcs(frame,
+ realm,
+ sitename,
+ &gcs_list,
+ &num_gcs);
if (!NT_STATUS_IS_OK(nt_status)) {
ads_status = ADS_ERROR_NT(nt_status);