From: Nadezhda Ivanova Date: Mon, 29 Sep 2025 13:07:05 +0000 (+0300) Subject: ITS#10392 back-ldap does not return a response if incorrect secprops is configured X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F793%2Fhead;p=thirdparty%2Fopenldap.git ITS#10392 back-ldap does not return a response if incorrect secprops is configured --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 3649518a3a..a259bd2013 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -1408,6 +1408,11 @@ retry_lock:; Debug( LDAP_DEBUG_ANY, "Error: ldap_set_option " "(SECPROPS,\"%s\") failed!\n", sb->sb_secprops ); + rs->sr_err = LDAP_OTHER; + if ( sendok & LDAP_BACK_SENDERR ) { + send_ldap_result( op, rs ); + } + LDAP_BACK_CONN_ISBOUND_CLEAR( lc ); goto done; } }