![Netscape NETSCAPE DIRECTORY SERVER 6.02 Administrator'S Manual Download Page 255](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-02/netscape-directory-server-6-02_administrators-manual_1674673255.webp)
Advanced Access Control: Using Macro ACIs
Chapter
6
Managing Access Control
255
3.
Replace [$dn] in subject with
dc=hostedCompany1
.
The result is
groupdn="ldap:///cn=DomainAdmins,ou=Groups,
dc=hostedCompany1,dc=example,dc=com"
. In this case, if the bind DN is not
a member of that group, the ACI is not evaluated. If it is a member, the ACI is
evaluated.
The advantage of the [$dn] macro is that it provides a flexible way of granting
access to domain-level administrators to all the subdomains in the directory tree.
Therefore, it is useful for expressing a hierarchical relationship between domains.
For example, consider the following ACI:
aci: (target="ldap:///ou=*, ($dn),dc=example,dc=com")
(targetattr="*")(targetfilter=(objectClass=nsManagedDomain))
(version 3.0; acl "Domain access"; allow (read,search)
groupdn="ldap:///cn=DomainAdmins,ou=Groups,[$dn],dc=example,dc=com"
;)
It grants access to the members of
cn=DomainAdmins,ou=Groups,
dc=hostedCompany1,dc=example,dc=com
to all of the subdomains under
dc=hostedCompany1
, so an administrator belonging to that group could access, for
example, the subtree
ou=people, dc=subdomain1.1, dc=subdomain1
.
However, at the same time, members of
cn=DomainAdmins,ou=Groups,
dc=subdomain1.1
, would be denied access to the
ou=people,dc=hostedCompany1
and
ou=people,dc=hostedCompany1
nodes.
Macro Matching for ($attr.
attrName
)
The ($attr.attrname) macro is always used in the subject part of a DN. For example,
you could define the following
roledn
:
roledn = "ldap:///cn=DomainAdmins,($attr.ou)"
Now, assume the server receives an LDAP operation targeted at the following
entry:
dn: cn=Jane Doe, ou=People, dc=HostedCompany1, dc=example,dc=com
cn: Jane Doe
sn: Doe
ou: Engineering, dc=HostedCompany1, dc=example,dc=com
...
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.02
Page 1: ...Administrator s Guide Netscape Directory Server Version6 02 May 2002 ...
Page 16: ...16 Netscape Directory Server Administrator s Guide May 2002 ...
Page 20: ...20 Netscape Directory Server Administrator s Guide May 2002 ...
Page 74: ...Maintaining Referential Integrity 74 Netscape Directory Server Administrator s Guide May 2002 ...
Page 138: ...Using Referrals 138 Netscape Directory Server Administrator s Guide May 2002 ...
Page 432: ...Miscellaneous Tuning Tips 432 Netscape Directory Server Administrator s Guide May 2002 ...
Page 434: ...434 Netscape Directory Server Administrator s Guide May 2002 ...
Page 468: ...PTA Plug In Syntax Examples 468 Netscape Directory Server Administrator s Guide May 2002 ...
Page 488: ...488 Netscape Directory Server Administrator s Guide May 2002 ...
Page 528: ...Examples of LDAP URLs 528 Netscape Directory Server Administrator s Guide May 2002 ...