mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
honor onerr on bind
This commit is contained in:
parent
f6be095299
commit
b90daf83f9
1 changed files with 9 additions and 0 deletions
|
|
@ -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 a new issue