Commit a08a2db4 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9370 check for equality rule on old_rdn

We should probably just check in dnNormalize instead, and catch
this everywhere DNs are received. It might make us reject some
DNs that are already in use, though (e.g. received from other
directory servers that don't do schema checking).
parent c1912fb7
Pipeline #1195 passed with stage
in 30 minutes and 42 seconds
......@@ -499,6 +499,16 @@ slap_modrdn2mods(
old_rdn[d_cnt]->la_attr.bv_val );
goto done;
if ( !desc->ad_type->sat_equality ) {
"%s slap_modrdn2mods: %s: %s (old)\n",
old_rdn[ d_cnt ]->la_attr.bv_val );
rs->sr_text = "naming attribute has no equality matching rule";
goto done;
/* Apply modification */
mod_tmp = ( Modifications * )ch_malloc( sizeof( Modifications ) );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment