Chapter 6. Managing Access Control
150
attributeX
is the name of the targeted attribute. For example, this targets the common name (
cn
)
attribute:
(targetattr = "cn")
To target an entry's common name, surname, and UID attributes, use the following:
(targetattr = "cn || sn || uid")
The attributes specified in the
targetattr
keyword apply to the entry that the ACI is
targeting and to all the entries below it. If you target the password attribute on the entry
uid=bjensen,ou=Marketing,dc=example,dc=com
, only the password attribute on the
bjensen
entry is affected by the ACI because it is a leaf entry.
If, however, you target the tree's branch point
ou=Marketing,dc=example,dc=com
, then all the
entries beneath the branch point that can contain a password attribute are affected by the ACI.
6.3.2.3. Targeting Both an Entry and Attributes
By default, the entry targeted by an ACI containing a
targetattr
keyword is the entry on
which the ACI is placed. That is, putting an ACI such as
aci: (targetattr = "uid")
(
access_control_rules
;)
on the
ou=Marketing,dc=example,dc=com
entry means that the ACI
applies to the entire
Marketing
subtree. However, you can also explicitly specify a target using the
target
keyword:
aci: (target="ldap:///ou=Marketing,dc=example,dc=com")(targetattr="uid")
(
access_control_rules
;)
The order in which you specify the
target
and the
targetattr
keywords is not important.
6.3.2.4. Targeting Entries or Attributes Using LDAP Filters
You can use LDAP filters to target a group of entries that match certain criteria. To do this, you must
use the
targetfilter
keyword with an LDAP filter. The syntax of the
targetfilter
keyword is as
follows:
(targetfilter = "
LDAP_filter
")
LDAP_filter
is a standard LDAP search filter. For more information on the syntax of LDAP search
filters, see
Appendix B, Finding Directory Entries
.
For example, suppose that all entries in the accounting department include the attribute-value
pair
ou=accounting
, and all entries in the engineering department include the attribute-value
pair
ou=engineering
subtree. The following filter targets all the entries in the accounting and
engineering branches of the directory tree:
(targetfilter = "(|(ou=accounting)(ou=engineering))")
This type of filter targets whole entries. You can associate the
targetfilter
and the
targetattr
keywords to create ACIs that apply to a subset of attributes in the targeted entries.
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...