]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10392 back-ldap does not return a response if incorrect secprops is configured master 793/head
authorNadezhda Ivanova <nivanova@symas.com>
Mon, 29 Sep 2025 13:07:05 +0000 (16:07 +0300)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 30 Sep 2025 16:14:55 +0000 (16:14 +0000)
servers/slapd/back-ldap/bind.c

index 3649518a3aef4f37b0d5a43eece852eafe7662e8..a259bd2013b081545fd77228cbd2ac438f464cff 100644 (file)
@@ -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;
                        }
                }