From b90daf83f9fb0ce18589bd3ba3445cef2b29a6c8 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 25 Aug 2005 08:55:55 +0000 Subject: [PATCH] honor onerr on bind --- servers/slapd/back-meta/bind.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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 */ -- 2.39.5