From 22f0d7012ce8393201ab0dbcc0bb958f94f1b563 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 10 Oct 2004 02:24:42 +0000 Subject: r2891: call rootDSE only with LDAP_SEARCH_SCOPE_BASE this is needed because of the global catalog metze (This used to be commit 071c19c25df92e87355ce6efb5eb7ce7694cf09b) --- source4/ldap_server/ldap_rootdse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/ldap_server/ldap_rootdse.c') diff --git a/source4/ldap_server/ldap_rootdse.c b/source4/ldap_server/ldap_rootdse.c index 631b38d383..09f0740680 100644 --- a/source4/ldap_server/ldap_rootdse.c +++ b/source4/ldap_server/ldap_rootdse.c @@ -315,8 +315,7 @@ static NTSTATUS rootdse_Search(struct ldapsrv_partition *partition, struct ldaps const char **attrs = NULL; if (r->scope != LDAP_SEARCH_SCOPE_BASE) { - count = -1; - goto no_base_scope; + return NT_STATUS_INVALID_PARAMETER; } local_ctx = talloc_named(call, 0, "rootdse_Search local memory context"); -- cgit