ITS#7420 re-fix slapcommon.c

bconfig requires RDN to pass schema check
This commit is contained in:
Howard Chu 2024-01-15 16:43:56 +00:00
parent 7c55484ee1
commit 7debe76f6c

View 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",