mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-10 00:45:01 -05:00
ITS#7850 catch invalid naming attr
This commit is contained in:
parent
fcdd3a06b1
commit
141f168093
1 changed files with 12 additions and 1 deletions
|
|
@ -432,11 +432,22 @@ slap_modrdn2mods(
|
|||
Debug( LDAP_DEBUG_TRACE,
|
||||
"%s slap_modrdn2mods: %s: %s (new)\n",
|
||||
op->o_log_prefix,
|
||||
rs->sr_text,
|
||||
rs->sr_text,
|
||||
new_rdn[ a_cnt ]->la_attr.bv_val );
|
||||
goto done;
|
||||
}
|
||||
|
||||
if ( !desc->ad_type->sat_equality ) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"%s slap_modrdn2mods: %s: %s (new)\n",
|
||||
op->o_log_prefix,
|
||||
rs->sr_text,
|
||||
new_rdn[ a_cnt ]->la_attr.bv_val );
|
||||
rs->sr_text = "naming attribute has no equality matching rule";
|
||||
rs->sr_err = LDAP_NAMING_VIOLATION;
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Apply modification */
|
||||
mod_tmp = ( Modifications * )ch_malloc( sizeof( Modifications ) );
|
||||
mod_tmp->sml_desc = desc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue