From: Howard Chu Date: Mon, 15 Jan 2024 16:43:56 +0000 (+0000) Subject: ITS#7420 re-fix slapcommon.c X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7debe76f6c356b1c4dfa58f4aa5783f75d69d37b;p=thirdparty%2Fopenldap.git ITS#7420 re-fix slapcommon.c bconfig requires RDN to pass schema check --- diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index d156add364..3f9333b268 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -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",