summaryrefslogtreecommitdiff
path: root/source4/ldap_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-09-16 03:18:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:11 -0500
commit95040e934175eb877ce6d83690fd06ce5d2b028c (patch)
tree88640eecd903be05f1fb7e96a2300d84a0402989 /source4/ldap_server
parentd8da5e4fb7534d2931a01bfc4b6f59bdca206c65 (diff)
downloadsamba-95040e934175eb877ce6d83690fd06ce5d2b028c.tar.gz
samba-95040e934175eb877ce6d83690fd06ce5d2b028c.tar.bz2
samba-95040e934175eb877ce6d83690fd06ce5d2b028c.zip
r10252: a recent checkin from simo changed the handling of BASE and SUBTREE
searches in ldb to be more ldap compliant, but broke the wins server and the ejs ldb code. This fixes those up so 'make test' passes again. (This used to be commit dff660c23c97114d0c1be705f4d6a9c114b60456)
Diffstat (limited to 'source4/ldap_server')
-rw-r--r--source4/ldap_server/ldap_rootdse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/ldap_server/ldap_rootdse.c b/source4/ldap_server/ldap_rootdse.c
index 9d19f71fcb..568623f23d 100644
--- a/source4/ldap_server/ldap_rootdse.c
+++ b/source4/ldap_server/ldap_rootdse.c
@@ -294,7 +294,8 @@ static NTSTATUS rootdse_Search(struct ldapsrv_partition *partition, struct ldaps
attrs[j] = NULL;
}
- count = ldb_search(ldb, NULL, 0, "dn=cn=rootDSE", attrs, &res);
+ count = ldb_search(ldb, ldb_dn_explode(local_ctx, "cn=rootDSE"), 0,
+ NULL, attrs, &res);
talloc_steal(local_ctx, res);
if (count == 1) {