]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#7420 re-fix slapcommon.c
authorHoward Chu <hyc@openldap.org>
Mon, 15 Jan 2024 16:43:56 +0000 (16:43 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 15 Jan 2024 16:43:56 +0000 (16:43 +0000)
bconfig requires RDN to pass schema check

servers/slapd/slapcommon.c

index d156add364c0e8879944fc91caa74d5146ea4fd7..3f9333b268e33b26518b9ea43c9b88fb5a4979fc 100644 (file)
@@ -1177,11 +1177,11 @@ slap_tool_entry_check(
        op->o_bd = be;
 
        if ( (slapMode & SLAP_TOOL_NO_SCHEMA_CHECK) == 0) {
-               int rc = entry_schema_check( op, e, manage, 1, NULL,
-                       text, textbuf, textlen );
+               int rc = entry_naming_check( e, manage, 1, text, textbuf, textlen );
 
                if( rc == LDAP_SUCCESS )
-                       rc = entry_naming_check( e, manage, 1, text, textbuf, textlen );
+                       rc = entry_schema_check( op, e, manage, 1, NULL,
+                       text, textbuf, textlen );
 
                if( rc != LDAP_SUCCESS ) {
                        fprintf( stderr, "%s: dn=\"%s\" (line=%d): (%d) %s\n",