handle softadd/softdel (internal modifications; ITS#7773)

This commit is contained in:
Pierangelo Masarati 2013-12-28 16:18:10 +01:00
parent 2358b35c58
commit 3be02f83df

View file

@ -855,6 +855,7 @@ constraint_check_count_violation( Modifications *m, Entry *target_entry, constra
ca = m->sml_numvals;
switch ( m->sml_op ) {
case LDAP_MOD_DELETE:
case SLAP_MOD_SOFTDEL:
if ( !ca || ca > ce ) {
ce = 0;
} else {
@ -865,6 +866,7 @@ constraint_check_count_violation( Modifications *m, Entry *target_entry, constra
break;
case LDAP_MOD_ADD:
case SLAP_MOD_SOFTADD:
ce += ca;
break;
@ -872,6 +874,11 @@ constraint_check_count_violation( Modifications *m, Entry *target_entry, constra
ce = ca;
break;
#if 0
/* TODO */
case handle SLAP_MOD_ADD_IF_NOT_PRESENT:
#endif
default:
/* impossible! assert? */
return 1;