]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#7786 Allow parsing of invalid entries when schema checking off
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 7 Apr 2021 09:57:12 +0000 (10:57 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 12 Apr 2021 16:28:49 +0000 (16:28 +0000)
servers/slapd/entry.c

index 700b0370ff8e80103d79e131f51c4f124957b016..7c78239c9665d26cdd92c2b10dde4a6852df1a2d 100644 (file)
@@ -248,7 +248,7 @@ str2entry2( char *s, int checkvals )
                                rc = slap_bv2ad( type+i, &ad, &text );
        
                                if( rc != LDAP_SUCCESS ) {
-                                       int wtool = ( slapMode & (SLAP_TOOL_MODE|SLAP_TOOL_READONLY) ) == SLAP_TOOL_MODE;
+                                       int wtool = ( slapMode & (SLAP_TOOL_MODE|SLAP_TOOL_READONLY|SLAP_TOOL_NO_SCHEMA_CHECK) ) == SLAP_TOOL_MODE;
                                        Debug( wtool ? LDAP_DEBUG_ANY : LDAP_DEBUG_TRACE,
                                                "<= str2entry: str2ad(%s): %s\n", type[i].bv_val, text );
                                        if( wtool ) {