From a7e94fce3f86b99c328669d45dd685fc70026378 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 4 May 2012 17:27:36 -0400 Subject: s3-ads-dns: Break dependency on lp_parm In preparation of making this code common to s3 and s4 --- source3/libads/ldap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/libads/ldap.c') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 70dad2f496..23b655f401 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -553,6 +553,7 @@ 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(); @@ -562,6 +563,7 @@ ADS_STATUS ads_connect_gc(ADS_STRUCT *ads) sitename = sitename_fetch(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 @@ -570,7 +572,8 @@ ADS_STATUS ads_connect_gc(ADS_STRUCT *ads) if (sitename == NULL) done = true; - nt_status = ads_dns_query_gcs(frame, realm, sitename, + nt_status = ads_dns_query_gcs(frame, dns_hosts_file, + realm, sitename, &gcs_list, &num_gcs); SAFE_FREE(sitename); -- cgit