}
mod = (Modifications *) ch_malloc( sizeof(Modifications) );
+ mod->sml_op = mop;
mod->sml_type = tmp.sml_type;
mod->sml_bvalues = tmp.sml_bvalues;
mod->sml_desc = NULL;
+ mod->sml_next =NULL;
*modtail = mod;
switch( mop ) {
}
}
- mod->sml_op = mop;
modtail = &mod->sml_next;
}
*modtail = NULL;
return LDAP_UNDEFINED_TYPE;
}
+ if( slap_ad_is_lang_range( ad )) {
+ /* attribute requires binary transfer */
+ snprintf( textbuf, textlen,
+ "%s: inappropriate use of language range option",
+ ml->sml_type.bv_val );
+ *text = textbuf;
+ return LDAP_UNDEFINED_TYPE;
+ }
+
if (!update && is_at_no_user_mod( ad->ad_type )) {
/* user modification disallowed */
snprintf( textbuf, textlen,