summaryrefslogtreecommitdiff
path: root/source4/dns_server/dnsserver_common.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2017-06-09 16:05:31 +1200
committerAndrew Bartlett <abartlet@samba.org>2017-06-10 21:48:20 +0200
commit970fdfae6a18bf11d423a72973c0f7b589e6f92a (patch)
treeb61e542a464306866c7228e3af44864c4c886f63 /source4/dns_server/dnsserver_common.h
parentf5e945c810b5e453b699d4e796cfb6790c442a17 (diff)
downloadsamba-970fdfae6a18bf11d423a72973c0f7b589e6f92a.tar.gz
pydsdb_dns: Allow the partition DN to be specified into py_dsdb_dns_lookup
This allows lookups to be confined to one partition, which in turn avoids issues when running this against MS Windows, which does not match Samba behaviour for dns_common_zones() Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'source4/dns_server/dnsserver_common.h')
-rw-r--r--source4/dns_server/dnsserver_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/dns_server/dnsserver_common.h b/source4/dns_server/dnsserver_common.h
index 57d5d9f3c15..293831f0acb 100644
--- a/source4/dns_server/dnsserver_common.h
+++ b/source4/dns_server/dnsserver_common.h
@@ -62,7 +62,14 @@ WERROR dns_common_name2dn(struct ldb_context *samdb,
TALLOC_CTX *mem_ctx,
const char *name,
struct ldb_dn **_dn);
+
+/*
+ * For this routine, base_dn is generally NULL. The exception comes
+ * from the python bindings to support setting ACLs on DNS objects
+ * when joining Windows
+ */
NTSTATUS dns_common_zones(struct ldb_context *samdb,
TALLOC_CTX *mem_ctx,
+ struct ldb_dn *base_dn,
struct dns_server_zone **zones_ret);
#endif /* __DNSSERVER_COMMON_H__ */