Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Barchiesi
OpenLDAP
Commits
676a9288
Commit
676a9288
authored
12 years ago
by
Pierangelo Masarati
Committed by
Quanah Gibson-Mount
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
more about ITS#7487
parent
337c9e3b
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/overlays/memberof.c
+14
-3
14 additions, 3 deletions
servers/slapd/overlays/memberof.c
with
14 additions
and
3 deletions
servers/slapd/overlays/memberof.c
+
14
−
3
View file @
676a9288
...
...
@@ -817,6 +817,7 @@ memberof_op_modify( Operation *op, SlapReply *rs )
switch
(
ml
->
sml_op
)
{
case
LDAP_MOD_DELETE
:
case
LDAP_MOD_REPLACE
:
case
SLAP_MOD_SOFTDEL
:
/* ITS#7487: can be used by syncrepl (in mirror mode?) */
save_member
=
1
;
break
;
}
...
...
@@ -844,6 +845,7 @@ memberof_op_modify( Operation *op, SlapReply *rs )
switch
(
ml
->
sml_op
)
{
case
LDAP_MOD_DELETE
:
case
SLAP_MOD_SOFTDEL
:
/* ITS#7487: can be used by syncrepl (in mirror mode?) */
/* we don't care about cancellations: if the value
* exists, fine; if it doesn't, we let the underlying
* database fail as appropriate; */
...
...
@@ -858,6 +860,8 @@ memberof_op_modify( Operation *op, SlapReply *rs )
}
case
LDAP_MOD_ADD
:
case
SLAP_MOD_SOFTADD
:
/* ITS#7487 */
case
SLAP_MOD_ADD_IF_NOT_PRESENT
:
/* ITS#7487 */
/* NOTE: right now, the attributeType we use
* for member must have a normalized value */
assert
(
ml
->
sml_nvalues
!=
NULL
);
...
...
@@ -946,6 +950,7 @@ memberof_op_modify( Operation *op, SlapReply *rs )
switch
(
ml
->
sml_op
)
{
case
LDAP_MOD_DELETE
:
case
SLAP_MOD_SOFTDEL
:
/* ITS#7487: can be used by syncrepl (in mirror mode?) */
if
(
ml
->
sml_nvalues
!=
NULL
)
{
AccessControlState
acl_state
=
ACL_STATE_INIT
;
...
...
@@ -1056,12 +1061,15 @@ memberof_op_modify( Operation *op, SlapReply *rs )
goto
done2
;
}
if
(
ml
->
sml_op
==
LDAP_MOD_DELETE
||
!
ml
->
sml_values
)
{
if
(
ml
->
sml_op
==
LDAP_MOD_DELETE
||
ml
->
sml_op
==
SLAP_MOD_SOFTDEL
||
!
ml
->
sml_values
)
{
break
;
}
/* fall thru */
case
LDAP_MOD_ADD
:
{
case
LDAP_MOD_ADD
:
case
SLAP_MOD_SOFTADD
:
/* ITS#7487 */
case
SLAP_MOD_ADD_IF_NOT_PRESENT
:
/* ITS#7487 */
{
AccessControlState
acl_state
=
ACL_STATE_INIT
;
for
(
i
=
0
;
!
BER_BVISNULL
(
&
ml
->
sml_nvalues
[
i
]
);
i
++
)
{
...
...
@@ -1363,6 +1371,7 @@ memberof_res_modify( Operation *op, SlapReply *rs )
switch
(
mml
->
sml_op
)
{
case
LDAP_MOD_DELETE
:
case
SLAP_MOD_SOFTDEL
:
/* ITS#7487: can be used by syncrepl (in mirror mode?) */
if
(
vals
!=
NULL
)
{
for
(
i
=
0
;
!
BER_BVISNULL
(
&
vals
[
i
]
);
i
++
)
{
memberof_value_modify
(
op
,
...
...
@@ -1396,6 +1405,8 @@ memberof_res_modify( Operation *op, SlapReply *rs )
/* fall thru */
case
LDAP_MOD_ADD
:
case
SLAP_MOD_SOFTADD
:
/* ITS#7487 */
case
SLAP_MOD_ADD_IF_NOT_PRESENT
:
/* ITS#7487 */
assert
(
vals
!=
NULL
);
for
(
i
=
0
;
!
BER_BVISNULL
(
&
vals
[
i
]
);
i
++
)
{
...
...
@@ -1446,7 +1457,7 @@ memberof_res_modify( Operation *op, SlapReply *rs )
}
}
if
(
ml
->
sml_op
==
LDAP_MOD_DELETE
||
!
ml
->
sml_values
)
{
if
(
ml
->
sml_op
==
LDAP_MOD_DELETE
||
ml
->
sml_op
==
SLAP_MOD_SOFTDEL
||
!
ml
->
sml_values
)
{
break
;
}
/* fall thru */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment