mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Fix ITS#4084, onelevel searches cannot return NO_SUCH_OBJECT if the base
was already found.
This commit is contained in:
parent
553b2884ab
commit
b81ed2c106
@ -321,6 +321,9 @@ glue_op_search ( Operation *op, SlapReply *rs )
|
||||
op->o_req_dn = op->o_bd->be_suffix[0];
|
||||
op->o_req_ndn = op->o_bd->be_nsuffix[0];
|
||||
rs->sr_err = op->o_bd->be_search(op, rs);
|
||||
if ( rs->sr_err == LDAP_NO_SUCH_OBJECT ) {
|
||||
gs.err = LDAP_SUCCESS;
|
||||
}
|
||||
|
||||
} else if (scope0 == LDAP_SCOPE_SUBTREE &&
|
||||
dn_match(&op->o_bd->be_nsuffix[0], &ndn))
|
||||
|
Loading…
Reference in New Issue
Block a user