summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2012-05-04 22:32:47 -0400
committerAlexander Bokovoy <ab@samba.org>2012-05-23 17:51:48 +0300
commitcc3321c9ffee9e1688af724b7286fe548ff28793 (patch)
tree734c70eb921e5986dba3a8526fad85a39f7ba65a /source3/libads
parenta7e94fce3f86b99c328669d45dd685fc70026378 (diff)
downloadsamba-cc3321c9ffee9e1688af724b7286fe548ff28793.tar.gz
samba-cc3321c9ffee9e1688af724b7286fe548ff28793.tar.bz2
samba-cc3321c9ffee9e1688af724b7286fe548ff28793.zip
s3-ads-dns: Avoid unnecessary dependencies
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/dns.c12
-rw-r--r--source3/libads/dns.h2
2 files changed, 3 insertions, 11 deletions
diff --git a/source3/libads/dns.c b/source3/libads/dns.c
index f62837e0fe..6f846fa780 100644
--- a/source3/libads/dns.c
+++ b/source3/libads/dns.c
@@ -20,7 +20,6 @@
#include "includes.h"
#include "libads/dns.h"
-#include "../librpc/ndr/libndr.h"
/* AIX resolv.h uses 'class' in struct ns_rr */
@@ -890,26 +889,19 @@ NTSTATUS ads_dns_query_pdc(TALLOC_CTX *ctx,
NTSTATUS ads_dns_query_dcs_guid(TALLOC_CTX *ctx,
const char *dns_hosts_file,
const char *dns_forest_name,
- const struct GUID *domain_guid,
+ const char *domain_guid,
struct dns_rr_srv **dclist,
int *numdcs )
{
/*_ldap._tcp.DomainGuid.domains._msdcs.DnsForestName */
const char *domains;
- char *guid_string;
-
- guid_string = GUID_string(ctx, domain_guid);
- if (!guid_string) {
- return NT_STATUS_NO_MEMORY;
- }
/* little hack */
- domains = talloc_asprintf(ctx, "%s.domains", guid_string);
+ domains = talloc_asprintf(ctx, "%s.domains", domain_guid);
if (!domains) {
return NT_STATUS_NO_MEMORY;
}
- TALLOC_FREE(guid_string);
return ads_dns_query_internal(ctx, dns_hosts_file, "_ldap", domains,
dns_forest_name, NULL, dclist, numdcs);
diff --git a/source3/libads/dns.h b/source3/libads/dns.h
index d57239d20c..a3ea47a04e 100644
--- a/source3/libads/dns.h
+++ b/source3/libads/dns.h
@@ -55,7 +55,7 @@ NTSTATUS ads_dns_query_pdc(TALLOC_CTX *ctx,
NTSTATUS ads_dns_query_dcs_guid(TALLOC_CTX *ctx,
const char *dns_hosts_file,
const char *dns_forest_name,
- const struct GUID *domain_guid,
+ const char *domain_guid,
struct dns_rr_srv **dclist,
int *numdcs );
#endif /* _ADS_DNS_H */