mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
handle softadd/softdel (internal modifications; ITS#7773)
This commit is contained in:
parent
2358b35c58
commit
3be02f83df
1 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue