Commit f12a84a7 authored by Pierangelo Masarati's avatar Pierangelo Masarati Committed by Quanah Gibson-Mount
Browse files

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

parent c22f4519
......@@ -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;
......
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