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/gitweb.cgi?a=commitdiff_plain;h=24aabe3b919c10b0e02547d12d3c592f7734fdee;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 30269e2c9f..97567ffcba 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; } }