From 5ffc2ce9f115e15749cb0e95d1bdf481ef476343 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 16 Mar 2005 21:03:51 +0000 Subject: [PATCH] Fix ITS#3601 --- servers/slapd/overlays/glue.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/servers/slapd/overlays/glue.c b/servers/slapd/overlays/glue.c index b5e53f13c8..13da05a952 100644 --- a/servers/slapd/overlays/glue.c +++ b/servers/slapd/overlays/glue.c @@ -271,7 +271,11 @@ glue_op_search ( Operation *op, SlapReply *rs ) switch (op->ors_scope) { case LDAP_SCOPE_BASE: - return SLAP_CB_CONTINUE; + rs->sr_err = LDAP_UNWILLING_TO_PERFORM; + if (op->o_bd && op->o_bd->be_search) { + rs->sr_err = op->o_bd->be_search( op, rs ); + } + return rs->sr_err; case LDAP_SCOPE_ONELEVEL: case LDAP_SCOPE_SUBTREE: -- 2.39.5