HP UX Red Hat Direry Server Software manual Macro ACI Syntax

Models: UX Red Hat Direry Server Software

1 638
Download 638 pages 23.73 Kb
Page 257
Image 257

Macro ACI Syntax

The following ACI is located on the dc=hostedCompany2,dc=example,dc=com node:

aci: (targetattr="*")(targetfilter=(objectClass=nsManagedDomain))

(version 3.0; acl "Domain access"; allow (read,search)

groupdn="ldap:///cn=DomainAdmins,ou=Groups,dc=hostedCompany2,dc=example,dc=com";)

The following ACI is located on the dc=subdomain1,dc=hostedCompany2,

dc=example,dc=com node:

aci: (targetattr="*")(targetfilter=(objectClass=nsManagedDomain)) (version 3.0; acl "Domain access"; allow (read,search) groupdn="ldap:///cn=DomainAdmins,ou=Groups,

dc=subdomain1,dc=hostedCompany2,dc=example,dc=com";)

In the four ACIs shown above, the only differentiator is the DN specified in the groupdn keyword. By using a macro for the DN, it is possible to replace these ACIs by a single ACI at the root of the tree, on the dc=example,dc=com node. This ACI reads as follows:

aci: (target="ldap:///ou=Groups,($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";)

The target keyword, which was not previously used, is utilized in the new ACI.

In this example, the number of ACIs is reduced from four to one. The real benefit is a factor of how many repeating patterns you have down and across your directory tree.

10.2. Macro ACI Syntax

Macro ACIs include the following types of expressions to replace a DN or part of a DN:

($dn)

[$dn]

($attr.attrName), where attrName represents an attribute contained in the target entry

In this section, the ACI keywords used to provide bind credentials, such as userdn, roledn, groupdn, and userattr, are collectively called the subject, as opposed to the target, of the ACI. Macro ACIs can be used in the target part or the subject part of an ACI.

Table 6.9, “Macros in ACI Keywords” shows in what parts of the ACI you can use DN macros:

237

Page 257
Image 257
HP UX Red Hat Direry Server Software manual Macro ACI Syntax