]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Reject operations when binding
authorOndřej Kuzník <ondra@mistotebe.net>
Fri, 14 Apr 2017 08:41:57 +0000 (09:41 +0100)
committerOndřej Kuzník <okuznik@symas.com>
Tue, 17 Nov 2020 17:55:46 +0000 (17:55 +0000)
servers/lloadd/client.c

index bb81b90bd3aef1e8c454ae06b56507a3a6d1654f..9220eb51e93ffa5ad708949c0868ee50e5ea5bb5 100644 (file)
@@ -93,6 +93,12 @@ client_read_cb( evutil_socket_t s, short what, void *arg )
                     &connection_pool, client_bind, op );
             break;
         default:
+            if ( c->c_state == SLAP_C_BINDING ) {
+                ldap_pvt_thread_mutex_unlock( &c->c_mutex );
+                operation_send_reject(
+                        op, LDAP_PROTOCOL_ERROR, "bind in progress", 0 );
+                return;
+            }
             rc = ldap_pvt_thread_pool_submit(
                     &connection_pool, request_process, op );
             break;