mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#8057 Enforce uniqueness unless permitted by ACL
This commit is contained in:
parent
c127e78fb0
commit
4b84b6af14
1 changed files with 12 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue