]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/add.c
Per ITS#419, don't require SLAPD_RLOOKUPS when HAVE_TCPD
[openldap] / servers / slapd / add.c
index 093072677b17bc12930f847c597af3749465d154..9bc2133841a79b5b2a7e623f862457f1199106a3 100644 (file)
@@ -147,6 +147,14 @@ do_add( Connection *conn, Operation *op )
                return rc;
        }
 
+       /* make sure this backend recongizes critical controls */
+       rc = backend_check_controls( be, conn, op ) ;
+
+       if( rc != LDAP_SUCCESS ) {
+               send_ldap_result( conn, op, rc,
+                       NULL, NULL, NULL, NULL );
+       }
+
        if ( global_readonly || be->be_readonly ) {
                Debug( LDAP_DEBUG_ANY, "do_add: database is read-only\n",
                       0, 0, 0 );