summaryrefslogtreecommitdiff
path: root/source4/dsdb/dns
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-08 11:55:02 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-08 01:41:42 +0000
commit5a6a9ea45c248281314bf8d4beb520db79055d02 (patch)
tree45d886cc762feb08bebc846fb19f153c60ad5075 /source4/dsdb/dns
parentc0297e5e89c48153a6f34f2585f9934bae2b2fbe (diff)
downloadsamba-5a6a9ea45c248281314bf8d4beb520db79055d02.tar.gz
samba-5a6a9ea45c248281314bf8d4beb520db79055d02.tar.bz2
samba-5a6a9ea45c248281314bf8d4beb520db79055d02.zip
s4-dns: ensure we get the right case on the grant rule for administrator
it may be 'Administrator' in the database, and bind match rules are case sensitive Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Nov 8 01:41:43 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/dsdb/dns')
-rw-r--r--source4/dsdb/dns/dns_update.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/dsdb/dns/dns_update.c b/source4/dsdb/dns/dns_update.c
index ae5be44366..3c625db7cc 100644
--- a/source4/dsdb/dns/dns_update.c
+++ b/source4/dsdb/dns/dns_update.c
@@ -111,7 +111,7 @@ static void dnsupdate_rebuild(struct dnsupdate_service *service)
TALLOC_FREE(service->confupdate.subreq);
ret = ldb_search(service->samdb, tmp_ctx, &res, NULL, LDB_SCOPE_SUBTREE,
- attrs, "(&(primaryGroupID=%u)(objectClass=computer))",
+ attrs, "(|(samaccountname=administrator)(&(primaryGroupID=%u)(objectClass=computer)))",
DOMAIN_RID_DCS);
if (ret != LDB_SUCCESS) {
DEBUG(0,(__location__ ": Unable to find DCs list - %s", ldb_errstring(service->samdb)));
@@ -154,7 +154,6 @@ static void dnsupdate_rebuild(struct dnsupdate_service *service)
dprintf(fd, "/* End of static entries */\n");
}
dprintf(fd, "\tgrant %s ms-self * A AAAA;\n", realm);
- dprintf(fd, "\tgrant administrator@%s wildcard * A AAAA SRV CNAME TXT;\n", realm);
for (i=0; i<res->count; i++) {
const char *acctname;