]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9400 back-ldap: fix retry binds
authorHoward Chu <hyc@openldap.org>
Mon, 23 Nov 2020 05:14:30 +0000 (05:14 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 2 Dec 2020 21:28:07 +0000 (21:28 +0000)
Regression from fix for ITS#7403

servers/slapd/back-ldap/bind.c

index 945d1433ed4485255aed6ef0bac84178ba057b0a..c648301f3b8515682dd2c46f712309309721972d 100644 (file)
@@ -2120,7 +2120,7 @@ ldap_back_is_proxy_authz( Operation *op, SlapReply *rs, ldap_back_send_t sendok,
        }
 
        if ( !( li->li_idassert_flags & LDAP_BACK_AUTH_OVERRIDE )) {
-               if ( op->o_tag == LDAP_REQ_BIND ) {
+               if ( op->o_tag == LDAP_REQ_BIND && ( sendok & LDAP_BACK_SENDOK )) {
                        if ( !BER_BVISEMPTY( &ndn )) {
                                dobind = 0;
                                goto done;