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
f2d332aa
Commit
f2d332aa
authored
Feb 14, 2015
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Feb 17, 2015
Browse files
ITS#8057 Enforce uniqueness unless permitted by ACL
parent
39b39d55
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/overlays/unique.c
View file @
f2d332aa
...
...
@@ -1040,7 +1040,10 @@ unique_add(
/* skip the checks if the operation has manageDsaIt control in it
* (for replication) */
if
(
op
->
o_managedsait
>
SLAP_CONTROL_IGNORED
)
{
if
(
op
->
o_managedsait
>
SLAP_CONTROL_IGNORED
&&
access_allowed
(
op
,
op
->
ora_e
,
slap_schema
.
si_ad_entry
,
NULL
,
ACL_MANAGE
,
NULL
)
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"unique_add: administrative bypass, skipping
\n
"
,
0
,
0
,
0
);
return
rc
;
}
...
...
@@ -1168,7 +1171,10 @@ unique_modify(
/* skip the checks if the operation has manageDsaIt control in it
* (for replication) */
if
(
op
->
o_managedsait
>
SLAP_CONTROL_IGNORED
)
{
if
(
op
->
o_managedsait
>
SLAP_CONTROL_IGNORED
&&
access_allowed
(
op
,
op
->
ora_e
,
slap_schema
.
si_ad_entry
,
NULL
,
ACL_MANAGE
,
NULL
)
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"unique_modify: administrative bypass, skipping
\n
"
,
0
,
0
,
0
);
return
rc
;
}
...
...
@@ -1289,7 +1295,10 @@ unique_modrdn(
/* skip the checks if the operation has manageDsaIt control in it
* (for replication) */
if
(
op
->
o_managedsait
>
SLAP_CONTROL_IGNORED
)
{
if
(
op
->
o_managedsait
>
SLAP_CONTROL_IGNORED
&&
access_allowed
(
op
,
op
->
ora_e
,
slap_schema
.
si_ad_entry
,
NULL
,
ACL_MANAGE
,
NULL
)
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"unique_modrdn: administrative bypass, skipping
\n
"
,
0
,
0
,
0
);
return
rc
;
}
...
...
Write
Preview
Markdown
is supported
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