From: Howard Chu Date: Wed, 16 Mar 2005 21:03:51 +0000 (+0000) Subject: Fix ITS#3601 X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~56 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5ffc2ce9f115e15749cb0e95d1bdf481ef476343;p=openldap Fix ITS#3601 --- 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: