mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

dugan
21.56.2007 d428f48a4cf79de5e3f7cbc38a2c1af7a0b80e4f
refs
author dugan <dugan@localhost>
Saturday, July 21, 2007 02:56 +0200
committer dugan <dugan@localhost>
Saturday, July 21, 2007 02:56 +0200
commitd428f48a4cf79de5e3f7cbc38a2c1af7a0b80e4f
tree 5554e523c0ea69f0f4ccecc2767b32197676cbe9 tree | zip | gz
parent 8f731063c3a73ae2585abd4f949611f153be9421 view | diff
Add the new ACI keyword  "targetcontrol"  that can be used to enforce access
based on the OID of a control. For example, a new global access control rule
is also being added:

ds-cfg-global-aci: (targetcontrol="2.16.840.1.113730.3.4.2 || 2.16.840.1.113730.3.4.17 ||
2.16.840.1.113730.3.4.19 || 1.3.6.1.4.1.4203.1.10.2")
(version 3.0; acl "Anonymous control access"; allow(read) userdn="ldap:///anyone";)

which allows anonymous access to the following controls:

- Manage DSA IT (2.16.840.1.113730.3.4.2)
- Real Attributes Only (2.16.840.1.113730.3.4.17)
- Virtual Attributes Only (2.16.840.1.113730.3.4.19)
- LDAP No-Op Control (1.3.6.1.4.1.4203.1.10.2)

A wildcard can also be specified. The following ACI rule allows access to all controls:

(targetcontrol="*") (version 3.0; acl "All control access example";
allow(read) userdn="ldap:///self";)

This ACI could be put on a users entry -- it doesn't need to be a global ACI.

Issue #452.
2 files added
21 files modified
1541 ■■■■ changed files
opends/resource/config/config.ldif 14 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/api/AccessControlHandler.java 59 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/Aci.java 97 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/AciContainer.java 31 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/AciHandler.java 55 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/AciLDAPOperationContainer.java 20 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/AciTargetMatchContext.java 7 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/AciTargets.java 56 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/EnumTargetKeyword.java 7 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/TargetAttr.java 8 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/TargetControl.java 101 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/DefaultAccessControlHandler.java 35 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/core/ExtendedOperationBasis.java 10 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/messages/AciMessages.java 66 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/messages/CoreMessages.java 14 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/messages/ToolMessages.java 2 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/workflowelement/localbackend/LocalBackendWorkflowElement.java 286 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/AciTestCase.java 207 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/AciTests.java 58 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/AlternateRootDN.java 16 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/GetEffectiveRightsTestCase.java 41 ●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/TargetAttrTestCase.java 9 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/TargetControlTestCase.java 342 ●●●●● diff | view | raw | blame | history