From: Pierangelo Masarati Date: Thu, 25 Aug 2005 08:55:55 +0000 (+0000) Subject: honor onerr on bind X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~581 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b90daf83f9fb0ce18589bd3ba3445cef2b29a6c8;p=openldap honor onerr on bind --- diff --git a/servers/slapd/back-meta/bind.c b/servers/slapd/back-meta/bind.c index 4ec1e28536..3ce113c130 100644 --- a/servers/slapd/back-meta/bind.c +++ b/servers/slapd/back-meta/bind.c @@ -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 */