Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
f12a84a7
Commit
f12a84a7
authored
Dec 28, 2013
by
Pierangelo Masarati
Committed by
Quanah Gibson-Mount
Jan 07, 2014
Browse files
handle softadd/softdel (internal modifications; ITS#7773)
parent
c22f4519
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/constraint.c
View file @
f12a84a7
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment