mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#4788 op->o_no_schema_check allows unknown attrs in slap_mods_check
This commit is contained in:
parent
45fbb173b7
commit
01744806a3
@ -554,6 +554,12 @@ int slap_mods_check(
|
||||
/* convert to attribute description */
|
||||
if ( ml->sml_desc == NULL ) {
|
||||
rc = slap_bv2ad( &ml->sml_type, &ml->sml_desc, text );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
if ( get_no_schema_check( op )) {
|
||||
rc = slap_bv2undef_ad( &ml->sml_type, &ml->sml_desc,
|
||||
text, 0 );
|
||||
}
|
||||
}
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
snprintf( textbuf, textlen, "%s: %s",
|
||||
ml->sml_type.bv_val, *text );
|
||||
|
Loading…
Reference in New Issue
Block a user