]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#3601
authorHoward Chu <hyc@openldap.org>
Wed, 16 Mar 2005 21:03:51 +0000 (21:03 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 16 Mar 2005 21:03:51 +0000 (21:03 +0000)
servers/slapd/overlays/glue.c

index b5e53f13c868c6aed96268e374bf32e666eccecc..13da05a95285a622f527564a209c6d1a5b6f5dab 100644 (file)
@@ -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: