Oracle Internet Directory Administrator's Guide Release 9.2 Part Number A96574-01 |
|
This chapter provides an overview of access control policies and describes how to administer directory access control by using either Oracle Directory Manager or the command-line tool, ldapmodify.
This chapter contains these topics:
See Also:
|
You manage access control policies by configuring the values of the ACI attributes within appropriate entries. You can do this by using either Oracle Directory Manager or ldapmodify.
This section contains these topics:
This section discusses the structures used for access control in Oracle Internet Directory. These include:
ACPs are entries in which the orclACI
attribute has been given a value. The orclACI
attribute value represents the access policies that are inherited by the subtree of entries starting with the ACP as the root of the subtree.
When a hierarchy of multiple ACPs exists in a directory subtree, a subordinate entry in that subtree inherits the access policies from all of the superior ACPs. The resulting policy is an aggregation of the policies within the ACP hierarchy above the entry.
For example, if an ACP is established in the HR department entry, and the Benefits, Payroll, and Insurance groups are entries within the HR department, then any entry within those groups inherits the access rights specified in the HR department entry.
When there are conflicting policies within a hierarchy of ACPs, the directory applies well-defined precedence rules in evaluating the aggregate policy.
The orclACI
attribute contains access control list (ACL) directives that are prescriptive--that is, these directives apply to all entries in the subtree below the ACP where this attribute is defined. Any entry in the directory can contain values for this attribute. Access to this attribute itself is controlled in the same way as access to any other attribute.
Note: It is possible to represent ACL directives specific to a single entry in the |
When a policy pertains only to a specific entity--for example, a special user--you can maintain, within a single entry, the ACL directives specific to that entry. Oracle Internet Directory enables you to do this through a user-modifiable operational attribute called orclEntryLevelACI
. The orclEntryLevelACI
attribute contains ACL directives that apply to only the entry with which it is associated.
Any directory entry can optionally carry a value for this attribute. This is because Oracle Internet Directory extends the abstract class top
to include orclEntryLevelACI
as an optional attribute.
The orclEntryLevelACI
attribute is multi-valued and has a structure similar to that of orclACI
. The structure definition is provided later in this chapter.
Group entries in Oracle Internet Directory are associated with either the groupOfNames
or the groupOfUniqueNames
object class. Membership in the group is specified as a value of the member
or uniqueMember
attribute respectively.
To specify access rights for a group of people or entities, you identify them in access control groups. There are two types of access control groups: ACP groups and privilege groups.
If an individual is a member of an ACP group, then the directory server simply grants to that individual the privileges associated with that ACP group.
Use ACP groups to resolve access at the level of an ACP. For example, suppose you want to give to several hundred users access to browse an entry. You could assign the browse privilege to each entry individually, but this could require considerable administrative overhead. Moreover, if you later decide to change that privilege, you would have to modify each entry individually. A more efficient solution is to assign the privilege collectively. To do this, you create a group entry, designate it as an ACP group, assign the desired privilege to that group, then assign users as members of that group. If you later change the access rights, you need to do it in one place, for the group, rather than for each individual user. Similarly, you can remove that privilege from multiple users by removing them from the group, rather than having to access multiple individual entries.
ACP groups are associated with the orclacpgroup
object class.
A privilege group is a higher-level access group. It is similar to an ACP group in that it lists users with similar rights. However, it also provides for additional checking beyond a single ACP, as follows: if an ACP denies access, an attribute in the user's entry tells the directory server whether the user being denied is in any privilege group. If so, then this user has additional rights at a higher administration level, and all higher administration levels in the DIT are checked. If the directory server finds a higher ACP that grants to the privilege group access to the requested object, then it overrides the denials by the subordinate ACP, and grants access to the user.
Normally, you would implement only ACP groups. The additional checking that privilege groups provide can degrade performance. Use privilege groups only when access control at higher levels needs the right to override standard controls at lower levels.
Use privilege groups to grant access to administrators who are not recognized by ACPs lower in the DIT. For example, suppose that the global administrator in a hosted environment must perform operations in a subscriber's subtree. Because the global administrator's identity is not recognized in the subscriber subtree, the directory server, relying only on the ACPs in that subtree, denies the necessary access. However, if the global administrator is a member of a privilege group, then the directory server looks higher in the DIT for an ACP that grants this privilege group access rights to that subtree. If it finds such an ACP, then the directory server overrides the denials by ACPs in the subscriber's subtree.
Privilege groups are associated with the orclPrivilegeGroup
object class
If a user is a member of both an ACP group and a privilege group, then the directory server performs an evaluation for each type of group. It resolves access rights for the privilege group by looking to ACPs higher in the DIT.
To grant access rights to a group of users, you:
orclPrivilegeGroup
object class or the orclACPgroup
object class.Entries can have either direct memberships in groups, or indirect memberships in other ACP or privilege groups by means of nested groups, thus forming a forest of privilege groups. Access policies specified at a given level are applicable to all the members directly or indirectly below that level.
Because Oracle Internet Directory evaluates for access control purposes only access control groups, it does not allow setting access policies for other types of groups. When a user binds with a specific distinguished name (DN), Oracle Internet Directory computes the user's direct membership in access control groups. Once it knows the first level groups for the given DN, Oracle Internet Directory computes nesting of all these first level groups into other access control groups. This process continues until there are no more nested groups to be evaluated.
Each access control group, nested or otherwise, must be associated with an access control group object class--either orclACPgroup
or orclPrivilegeGroup
. Even if a group is a member of an access control group, the directory server does not consider it for access control purposes unless it is associated with an access control group object class. When it has determined the user's membership in access control groups, the directory server uses that information for the lifetime of the session.
For example, consider the following group of entries, each of which, with the exception of group4, is marked as a privilege group (objectclass:orclprivilegegroup
). You can set access control policies that apply to the members of group1, group2, and group3.
Group 3,c=us
contains the following nested groups:
Access control policies for Group 3 are applicable to members of Group 3, Group 1, and Group 2 because each of them is marked as a privilege group. These same access control policies are not applicable to the members of group4 because group4 is not marked as a privilege group.
For example, suppose that the user binds to Oracle Internet Directory as a member of Group 4 with the DN cn=john smith,c=uk
. None of the access policies applicable to the members of Group 3 will apply to this user. This is because his only direct membership is to a non-privilege group. By contrast, if the user were to bind as cn=john smith,c=us
--that is, as a member of group1 and Group 2--then his access rights will be governed by access policies set up for members of Group 1, Group 2, as well as Group 3 (in which Group 1 and Group 2 are nested). This is because all three groups are associated with the object class orclPrivilegeGroup
.
Access control information represents the permissions that various entities or subjects have to perform operations on a given object in the directory. Thus, an ACI consists of three components:
The object part of the access control directive determines the entries and attributes to which the access control applies. It can be either an entry or an attribute.
Entry objects associated with an ACI are implicitly identified by the entry or the subtree where the ACI itself is defined. Any further qualification of objects at the level of attributes is specified explicitly in the ACL expressions.
In the orclACI
attribute, the entry DN component of the object of the ACI is implicitly that of all entries within the subtree starting with the ACP as its topmost entry. For example, if dc=com
is an ACP, then the directory area governed by its ACI is:
.*, dc=com.
However, since the directory area is implicit, the DN component is neither required nor syntactically allowed.
In the orclEntryLevelACI
attribute, the entry DN component of the object of the ACL is implicitly that of the entry itself. For example, if dc=acme,dc=com
has an entry level ACI associated with it, then the entry governed by its ACI is exactly: dc=acme,dc=com
. Since it is implicit, the DN component is neither required nor syntactically allowed.
The object portion of the ACL allows entries to be optionally qualified by a filter matching some attribute(s) in the entry:
filter=(ldapFilter)
where ldapFilter is a string representation of an LDAP search filter. The special entry selector *
is used to specify all entries.
Attributes within an entry are included in a policy by including a comma-delimited list of attribute names in the object selector.
attr=(attribute_list)
Attributes within an entry are excluded from a policy by including a comma-delimited list of attribute names in the object selector.
attr!=(attribute_list)
See Also:
Appendix B, "The Access Control Directive Format" for information about the format or syntax of ACIs |
This section describes:
Access is granted to entities, not entries. The entity component identifies the entity or entities being granted access.
You can specify entities either directly or indirectly.
Directly specifying an entity--This method involves entering the actual value of the entity--for example group=managers. You can do this by using:
Indirectly specifying an entity--This is a dynamic way of specifying entities. It involves specifying a DN-valued attribute that is part of the entry to which you are granting access. There are three types of DN-valued attributes:
For example, suppose you want to specify that Anne Smith's manager can modify the salary attribute in her entry. Instead of specifying the manager DN directly, you specify the DN-valued attribute: dnattr=<manager>. Then, when John Doe seeks to modify Anne's salary attribute, the directory server:
The bind mode specifies the method of authentication to be used by the subject. There are four modes:
Simple
: Simple password-based authenticationSSLNoauth
: For SSL-based clients with either anonymous or simple password based authentication. This method uses only the encryption feature of SSL.SSLOneway
: For SSL-based clients with server authentication with either anonymous or password-based authenticationSSLTwoway
: For SSL-based clients with strong authentication through SSL.Specifying the bind mode is optional. The directory server verifies that the bind mode of the user is compatible with that of the node with which the user is trying to communicate. The bind mode specified on one node must be compatible with that specified on the node with which it is communicating. For example, if you specify SSLTwoway
authentication on one node, then the other node must also be configured for this type of authentication.
When a parent entry has add access, it can add objects as entries lower in the hierarchy. The added object constraint can be used to limit that right by specifying an ldapfilter.
See Also:
Appendix B, "The Access Control Directive Format" and Appendix F, "The LDAP Filter Definition" |
The kind of access granted can be one of the following:
Note that each access level can be independently granted or denied. The no
xxx means xxx permission is denied.
Note that some access permissions are associated with entries and others with attributes.
The entry level access directives are distinguished by the keyword ENTRY
in the object component.
The following table lists LDAP operations and the access required to perform each one.
You can view and modify access control information within ACPs by using either Oracle Directory Manager or command-line tools. This section explains how to accomplish these tasks by using Oracle Directory Manager.
Note: Immediately after installing Oracle Internet Directory, be sure to reset the default security configuration as described in "Task 3: Reset the Default Security Configuration" |
This section contains these topics:
See Also:
Appendix A, "Syntax for LDIF and Command-Line Tools" for a description of command-line tools |
You can configure how Oracle Directory Manager displays ACPs, and how it performs searches for ACPs.
Oracle Directory Manager enables you to determine whether the navigator pane displays all ACPs automatically or only as the result of a search. If you have a large number of ACPs, you may want to display them only as the result of a search.
To configure the display of ACPs:
For ACP searches, Oracle Directory Manager enables you to specify:
To configure searches for ACP entries:
If you configured Oracle Directory Manager always to display ACPs, as described in "Configuring the Display of ACPs in Oracle Directory Manager", then you can locate and view an ACP as follows:
The three fields in the Access Control Management pane are:
Field | Description |
---|---|
Path to the Subtree Control Point |
Contains the path defined by the ACP. If you have navigated down a tree to this point, the path to this point appears in this field. If you are creating a new ACP, you must enter the path to it here. |
Structural Access Items (Entry Level Operations) |
Lists access to entries. Items listed in the Structural Access Items box identify an entry by the following categories:
See Also: "Task 2: Modify Structural Access Items" for instructions on how to modify structural access items |
Content Access Items (Attribute Level Operations) |
Lists access to attributes within the entry or entries identified in the Entry Filter column. Columns in this window include:
See Also: "Task 3: Modify Content Access Items" for instructions on how to modify content access items. |
If you configured Oracle Directory Manager to display ACPs only as the result of a search, as described in "Configuring the Display of ACPs in Oracle Directory Manager", then you can locate and view an ACP as follows:
To view entry level access controls for this ACP, select the Local Access tab.
ACPs are entries that contain prescriptive, that is, inheritable, access control information. This information affects the entry itself and all entries below it. You will most likely create ACPs to broadcast large-scale access control throughout a subtree.
Adding an ACP by using Oracle Directory Manager involves three tasks:
If you configured Oracle Directory Manager to display ACPs only as the result of a search, as described in "Configuring the Display of ACPs in Oracle Directory Manager", then begin as follows:
In an ACP, the access rights defined apply to the entry and all its subentries unless other filters restrict access further. If appropriate, use the Entry Filters tab page to identify the entries to which you are specifying access.
You might restrict access to an entry based on one or more of that entry's attributes. For example, you might choose to restrict access to all entries in which the title is manager and in which the organization unit is Americas.
To identify an entry to which you are specifying access:
You can specify ACIs to restrict the kind of entries a user can add. For example, you can specify an ACI in the DSE root entry that allows users to add only entries with objectclass=country
. The directory server then verifies that any new entry complies with the constraints in this filter.
To restrict the kind of entries a user can add:
The bind mode is optional in subject specification. If you do not set an authentication method, any kind of authentication is accepted. The bind mode specified on one node should match the bind mode specified on the node with which it is communicating.
In an ACP, the access rights defined apply to the entry and all its subentries unless other filters restrict access further. If appropriate, use the Entry Filters tab page to identify the entries to which you are specifying access.
You might restrict access to an entry based on one or more of that entry's attributes. For example, you might choose to restrict access to all entries in which the title is manager and in which the organization unit is Americas.
To identify an entry to which you are specifying access:
The bind mode is optional in subject specification. If you do not set an authentication method, any kind of authentication is accepted. The bind mode specified on one node should match the bind mode specified on the node with which it is communicating.
For example, if you select EQ and cn
, then the access rights you grant apply to the cn
attribute. If you select NEQ and cn
, then the access rights you grant do not apply to the cn
attribute.
The ACP Creation Wizard guides you through the tasks involved in adding an ACP. These tasks are:
If you configured Oracle Directory Manager to display ACPs only as the result of a search, as described in "Configuring the Display of ACPs in Oracle Directory Manager", then begin as follows:
In an ACP, the access rights defined apply either to the entry and all its subentries or to a specific entry only. The next sections tell you how to configure an ACP for either option.
If you specify prescriptive structural access items, then all entries below the ACP are governed by that ACP. If you want prescriptive structural access items, then you do not need to enter anything on this first Structural Access Item dialog box.
objectclass=country
. The directory server then verifies that any new entry complies with the constraints in this filter.
To restrict the kind of entries a user can add:
To define content access items, that is, ACIs that pertain to attributes, just below the Content Access Items window, click Create via Wizard. The first Content Access Item dialog box appears.
If you specify prescriptive content access items, then all entries below the ACP are governed by that ACP. If you want prescriptive content access items, then you do not need to enter anything on this first Content Access Item dialog box.
The bind mode is optional in subject specification. If you do not set an authentication method, or choose None, any kind of authentication is accepted. The bind mode specified on one node should match the bind mode specified on the node with which it is communicating.
There are five bind modes from which to select:
Modifying ACPs by using Oracle Directory Manager involves three tasks:
If you configured Oracle Directory Manager to display ACPs only as the result of a search, as described in "Configuring the Display of ACPs in Oracle Directory Manager", then begin as follows:
You can add new structural access items, or modify existing ones.
See Also:
"Task 2: Configure Structural Access Items" for instructions about adding structural access items |
To modify structural access items:
You might choose an entry based on one or more attributes. For example, you might choose to search for all those whose title is secretary, or for all those whose title is manager and whose organization unit is Americas.
In the Criteria window of the Entry Filters tab page, use the search criteria bar to select an attribute, enter a value for that attribute, and specify a filter for matching the specified attribute with the value you entered. To do this:
objectclass=country
. The directory server then verifies that any new entry complies with the constraints in this filter.
To restrict the kind of entries a user can add:
The bind mode is optional in subject specification. For the directive to be applicable, the bind mode specified on one node should match the bind mode specified on the node with which it is communicating.
You can add new content access items, or modify existing ones.
See Also:
"Task 3: Configure Content Access Items" for instructions about adding new content access items |
To modify content access items:
In an ACP, the access rights defined apply to the entry and all its subentries unless other filters restrict access further. If appropriate, use the Entry Filters tab page to identify the entries to which you are specifying access.
You might restrict access to an entry based on one or more of that entry's attributes. For example, you might choose to restrict access to all entries in which the title is manager and in which the organization unit is Americas.
To identify an entry to which you are specifying access:
The bind mode is optional in subject specification. If you do not set an authentication method, any kind of authentication is accepted. The bind mode specified on one node should match the bind mode specified on the node with which it is communicating.
For example, if you select EQ and cn
, then the access rights you grant apply to the cn
attribute. If you select NEQ and cn
, then the access rights you grant do not apply to the cn
attribute.
To grant entry-level access by using Oracle Directory Manager:
This example illustrates how to use Oracle Directory Manager to create a new ACP that has ACIs within it. Suppose you are an administrator in a large company, and you want to limit access to user passwords, so that everyone can compare a password, but only the owner of each password, that is, the user, can read the password or modify it.
In this example, we create a new ACP and populate it with four ACIs that set the following permissions:
userpassword
attribute by everyoneuserpassword
attribute by the user himselfuserpassword
to everyoneTo set the access rights for an entry:
Because you want the ACIs to apply to all entries under the ACP, do not use the Entry Filter tab page.
The four ACIs in this example use the same structural content item information. They differ only in the content access they allow. The rest of this section describes how to create the content access for the ACIs.
To define the content access items:
Because you want this ACI to apply to all entries under the ACP, do not use the Entry Filter tab page.
Select EQ and select userPassword
.
You have completed one ACI.
Create another ACI that allows a user to read, write, search, and compare his own password.
Select EQ and userPassword.
Grant access to read, search, write, and compare. Leave selfwrite unspecified.
You have now created two ACIs. One denies Everyone read, search, write, and compare access to the userPassword
attribute. The second allows the owner of the password to read, search, write, and compare that attribute.
The next ACI grants access to Everyone to read, search, and compare all attributes except userPassword
. It denies write access.
Select NEQ and userPassword
.
This combination means that any attribute that is not equal to userpassword
is the object of the permissions in this ACI.
Grant access to read, search, and compare. Deny write access. Leave selfwrite unspecified.
The next ACI grants access to Self to read, browse, and write all attributes except userpassword
. Including this ACI avoids any ambiguity about whether Self has the same access permissions as Everyone to attributes other than userPassword
.
Click When Session User's Distinguished Name (DN) Matches the Accessed Entry.
From the lists, select NEQ and userPassword
. This combination means that any attribute that is not equal to userPassword
is the object of the permissions in this ACI.
Grant access to read, search, and write. Leave Selfwrite unspecified.
Consider other access restrictions you might want to implement. Your directory might contain many entries and attributes that should not be available to everyone.
As described in "Overview of Access Control Policy Administration", directory access control policy information is represented as user-modifiable operational attributes. Hence, you can manage directory access control by using ldapmodify to set and alter values of these attributes. Any tool, including ldapmodify and ldapmodifymt, can be used for this purpose.
To directly edit the ACI, you should understand the format and semantics of the directory representation of the ACI as described in Appendix B, "The Access Control Directive Format".
See Also:
|
You can specify ACIs to restrict the kind of entries a user can add. For example, you can specify an ACI in the DSE root entry that allows users to add only entries with objectclass=country
. To do this, you use the added_object_constraint
filter. The directory server then verifies that any new entry complies with the constraints in this filter.
The following example specifies that:
cn=admin,c=us
can browse, add, and delete under organization
entries.cn=admin,c=us
can add organizationalUnit
objects under organization
entriesorganization
entries
access to entry filter=(objectclass=organization) by group="cn=admin,c=us"
constraintonaddedobject=(objectclass=organisationalunit)
(browse,add,delete) by * (browse)
This example sets up subtree access permissions in an orclACI
at the root DSE by using an LDIF file named my_ldif_file
. Because this example refers to the orclACI
attribute, this access directive governs all the entries in the DIT.
ldapmodify -v -h $1 -D "cn=Directory Manager, o=IMC, c=US" -w "controller" -f my_ldif_file
The LDIF file, my_ldif_file
, contains the following:
dn: changetype: modify replace: orclaci orclaci: access to entry by dn="cn=directory manager, o=IMC, c=us" (browse, add, delete) by * (browse, noadd, nodelete)orclaci: access to attr=(*)
by dn="cn=directory manager, o=IMC, c=us" (search, read, write, compare) by self (search, read, write, compare) by * (search, read, nowrite, nocompare)
This example sets up entry-level access permissions in the orclEntryLevelACI
attribute by using an LDIF file named my_ldif_file
. Because this example refers to the orclentrylevelACI
attribute, this access directive governs only the entry in which it resides.
ldapmodify -v -h myhost -D "cn=Directory Manager, o=IMC, c=US" -w "controller"
-f my_ldif_file
The LDIF file, my_ldif_file
, contains the following:
dn: changetype: modify replace: orclentrylevelaci orclentrylevelaci: access to entry by dn="cn=directory manager, o=IMC, c=us" (browse, add, delete) by * (browse, noadd, nodelete)orclentrylevelaci: access to attr=(*)
by dn="cn=directory manager, o=IMC, c=us" (search, read, write, compare) by * (search, read, nowrite, nocompare)
Note: In this example, no DN value is specified. This means that this ACI pertains to the root DSE and its attributes only. |
This example shows the use of wild cards (*) in the object and subject specifiers. For all entries within the acme.com
domain, it grants to everyone browse permission on all entries, as well as read and search permissions on all attributes.
orclACI
attribute in the ACP at dc=com
access to entry by * (browse)
access to attr=(*) by * (search, read)
Note that, in order to allow reading the attributes, browse permissions must be granted on the entries in order for read permissions to be granted to the attributes of those entries.
This example shows the use of a regular expression to select the entries by DN in two access directives. It grants to everyone read-only access to the address book attributes under dc=acme,dc=com
access.
orclACI
attribute of dc=acme, dc=com
:
access to entry by * (browse) access to attr=(cn, telephone, email) by * (search, read)
orclACI
attribute of dc=us, dc=acme, dc=com
:
access to entry by * (browse) access to attr=(*) by dn=".*,dc=us,dc=acme,dc=com" (search, read)
This example shows the use of an attribute selector to grant access to a specific attribute, and various subject selectors. The example applies to entries in the dc=us,dc=acme,dc=com
subtree. The policy enforced by this ACI can be described as follows:
dc=us
subtree can browse, but those outside it have no access to the subtree.userPassword
attribute can be viewed and modified by oneself and the administrator. Others can only compare this attribute.homePhone
attribute can be read and written by oneself and viewed by anyone else."orclACI" attribute of "dc=us, dc=acme, dc=com":
access to entry by dn="cn=admin, dc=us,dc=acme,dc=com" (browse, add, delete) by dn=".*, dc=us,dc=acme,dc=com" (browse) by * (none)
access to attr=(salary) by dnattr=(manager) (read, write) by self (read) by * (none)
access to attr=(userPassword) by self (search, read, write) by dn="cn=admin, dc=us,dc=acme,dc=com" (search, read, write) by * (compare)
access to attr=(homePhone) by self (search, read, write) by * (read)
access to attr != (salary, userPassword, homePhone) by dn="cn=admin, dc=us,dc=acme,dc=com" (compare, search, read, write) by * (compare, search, read)
This example gives to everyone read-only access to address book attributes under dc=acme,dc=com
. It also extends to everyone read access to all attributes within the dc=us,dc=acme,dc=com
subtree only.
orclACI
attribute of dc=acme, dc=com
:
access to entry by * (browse) access to attr=(cn, telephone, email) by * (search, read)
orclACI
attribute of dc=us, dc=acme, dc=com
:
access to entry by * (browse) access to attr=(*) by dn=".*,dc=us,dc=acme,dc=com" (search, read)
This example allows people within the US domain to add or remove only their own name (DN) to or from the member attribute of a particular group entry, for example, a mailing list.
orclEntryLevelACI
attribute of the group entry in question:
access to attr=(member) by dn=".*, dc=us,dc=acme,dc=com" (selfwrite)
When a user tries to perform an operation on a given object, the directory server determines whether that user has the appropriate access to perform that operation on that object. If the object is an entry, it evaluates the access systematically for the entry and each of its attributes.
Evaluating access to an object--including an attribute of an entry--can involve examining all the ACI directives for that object. This is because of the hierarchical nature of ACPs and the inheritance of policies from superior ACPs to subordinate ACPs.
The directory server first examines the ACI directives in the entry-level ACI, orclEntryLevelACI
. It proceeds to the nearest ACP, then considers each superior ACP in succession until the evaluation is complete.
During ACL evaluation, an attribute is said to be in one of the following states:
In all operations except search, the evaluation stops if:
In this case the operation would fail and the directory server would return an error to the client.
In a search operation, the evaluation continues until all the attributes reach the resolved state. Attributes that are resolved with denial are not returned.
This section contains these topics:
An LDAP operation requires the BindDN, or subject, of the LDAP session to have certain permissions to perform operations on the objects--including the entry itself and the individual attributes of the entry.
Typically, there could be a hierarchy of access control administration authorities, starting from the root of a naming context down to successive administrative points (or access control policy points). An ACP is any entry which has a defined value for the orclACI
attribute. Additionally, the access information specific to a single entry can also be represented within the entry itself (orclEntryLevelACI
).
ACL evaluation involves determining whether a subject has sufficient permissions to perform an LDAP operation. Typically an orclentryLevelACI
or orclACI
might not contain all the necessary information for ACL evaluation. Hence, all available ACL information is processed in a certain order until the evaluation is fully resolved.
That order of processing follows these rules:
orclACI
are examined starting with the ACP closest to the target entry and then its superior ACP and so on.ACIs at the entry level are evaluated in the following order:
At the attribute level, specified ACIs have precedence over unspecified ACIs.
If there are two or more ACIs at the same ACP for the same object, then only one ACI is checked, and all other ACIs are ignored. For example, suppose you have the following two ACIs at the same ACP for the same entry:
access to entry
by dn="cn=admin, dc=us,dc=acme,dc=com" (browse, add, delete)
access to entry
by dn="cn=manager,dc=us,dc=acme,dc=com" (search, read)
If ACI #2 happens to be checked first, then the access granted specifically to the administrator in ACI #1 is ignored. If an administrator then seeks access to the entry, then that access is not be resolved at this level of the hierarchy. The evaluation must move progressively up the hierarchy in search of resolution. If no resolution is found, all access is denied.
The solution is to create only one ACI at the same ACP for this entry. For example:
access to entry by dn="cn=admin, dc=us,dc=acme,dc=com" (browse, add, delete) by dn="cn=manager,dc=us,dc=acme,dc=com" (search, read)
Similarly, at the attribute level, suppose you have the following two ACIs:
access to attr=(userpassword)
by dnattr=(".*,dc=us,dc=acme,dc=com") (none)
access to attr=(userpassword)
by self (read, write)
If ACI #1 happens to be returned first, then the access granted to self in ACI #2 is ignored. If a user then wishes to change his or her own password, then that access cannot be granted.
As with the ACIs for entries, the solution is to create only one ACI at the same ACP for this attribute. For example:
access to attr=(userpassword) by dnattr=(".*,dc=us,dc=acme,dc=com) (none) by self (read, write)
If an ACI exists for a given object, you can specify access to all other objects except that one. You do this either by granting access to all the objects, or by denying access to the one object.
In the following example, access is granted to all attributes:
access to attr=(*)
by group2 (read)
In the following example, access is denied to the userpassword
attribute:
access to attr!=(userpassword)
by group2 (read)
If an operation on an attribute or the entry itself is explicitly denied at an ACP low in the DIT, then, typically, the ACL evaluation for the attribute (or entry) is considered "Resolved with Denial." However, if the user of the session (bindDN) is a member of a group object, then the evaluation continues as if it is still unresolved. If permissions are granted to the user of the session at an ACP higher in the tree through a group subject selector, then such grants have precedence over any denials lower in the tree.
This scenario is the only case in which an ACL policy at a higher level ACP has precedence over an ACP policy lower in the DIT.
|
Copyright © 1999, 2002 Oracle Corporation. All Rights Reserved. |
|