From 95040e934175eb877ce6d83690fd06ce5d2b028c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 16 Sep 2005 03:18:49 +0000 Subject: 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) --- source4/ldap_server/ldap_rootdse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/ldap_server') 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) { -- cgit