mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
honor onerr on bind
This commit is contained in:
parent
f6be095299
commit
b90daf83f9
@ -129,6 +129,11 @@ meta_back_bind( Operation *op, SlapReply *rs )
|
||||
rs->sr_err = lerr;
|
||||
candidates[ i ].sr_tag = META_NOT_CANDIDATE;
|
||||
|
||||
if ( META_BACK_ONERR_STOP( mi ) ) {
|
||||
rc = rs->sr_err;
|
||||
break;
|
||||
}
|
||||
|
||||
} else {
|
||||
rc = LDAP_SUCCESS;
|
||||
}
|
||||
@ -589,6 +594,10 @@ meta_back_dobind(
|
||||
* so better clear the handle
|
||||
*/
|
||||
candidates[ i ].sr_tag = META_NOT_CANDIDATE;
|
||||
if ( META_BACK_ONERR_STOP( mi ) ) {
|
||||
bound = 0;
|
||||
goto done;
|
||||
}
|
||||
continue;
|
||||
} /* else */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user