summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-08-19 17:27:55 +1000
committerAndrew Tridgell <tridge@samba.org>2011-08-25 07:39:37 +1000
commit9f2a41eea8ad3e4e586152aeeb36fd6b287e7b24 (patch)
treee7392f97a1d0e89fb6c0c533b36b6570c97ebfff /source4
parentfb612af6553748ca725cfbb0d8c24948d10f47a2 (diff)
downloadsamba-9f2a41eea8ad3e4e586152aeeb36fd6b287e7b24.tar.gz
samba-9f2a41eea8ad3e4e586152aeeb36fd6b287e7b24.tar.bz2
samba-9f2a41eea8ad3e4e586152aeeb36fd6b287e7b24.zip
s4-dns: when searching all partitions the NULL basedn is OK
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/dns_server/dns_server.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source4/dns_server/dns_server.c b/source4/dns_server/dns_server.c
index 0c36c20773..e1640351bf 100644
--- a/source4/dns_server/dns_server.c
+++ b/source4/dns_server/dns_server.c
@@ -601,7 +601,6 @@ static void dns_task_init(struct task_server *task)
struct interface *ifaces;
int ret;
struct ldb_result *res;
- struct ldb_dn *rootdn;
static const char * const attrs[] = { "name", NULL};
unsigned int i;
@@ -641,14 +640,8 @@ static void dns_task_init(struct task_server *task)
return;
}
- rootdn = ldb_dn_new(dns, dns->samdb, "");
- if (rootdn == NULL) {
- task_server_terminate(task, "dns: out of memory", true);
- return;
- }
-
// TODO: this search does not work against windows
- ret = dsdb_search(dns->samdb, dns, &res, rootdn, LDB_SCOPE_SUBTREE,
+ ret = dsdb_search(dns->samdb, dns, &res, NULL, LDB_SCOPE_SUBTREE,
attrs, DSDB_SEARCH_SEARCH_ALL_PARTITIONS, "(objectClass=dnsZone)");
if (ret != LDB_SUCCESS) {
task_server_terminate(task,