Defining Group Access - groupdn Keyword

 

 

ScenExamplerio

 

 

Description

 

 

 

 

 

 

 

 

Userdnuserdn = "ldap:///self";

 

 

The bind rule is evaluated to be true if the user is accessing

 

 

keyword

 

 

 

 

 

 

the entry represented by the DN with which the user bound to

 

 

containing

 

 

 

 

 

 

the directory. That is, if the user has bound as uid=ssarette,

 

self

 

 

 

 

 

dc=example,dc=com and the user is attempting an operation

 

keyword

 

 

 

 

 

on the uid=ssarette,dc=example,dc=com entry, then the

 

 

 

 

 

 

 

 

 

 

bind rule is true.

 

 

 

 

 

If you want to grant all users in the example.com tree write

 

 

 

 

 

access to their userPassword attribute, you would create the

 

 

 

 

 

following ACI on the dc=example,dc=com node.

 

 

 

 

 

aci: (targetattr = "userPassword") (version 3.0; acl "write-self";

 

 

 

 

 

allow (write) userdn = "ldap:///self";)

 

 

 

 

 

 

 

Userdnuserdn = "ldap:///all";

 

 

The bind rule is evaluated to be true for any valid bind DN. To

 

keyword

 

 

 

 

 

be true, a valid distinguished name must be presented by the

 

containing

 

 

 

 

 

user for a successful bind operation.

 

the

 

 

 

 

 

 

 

all

 

 

For example, if you want to grant read access to the entire tree

 

keyword

 

 

 

 

 

to all authenticated users, you would create the following ACI

 

 

 

 

 

 

 

 

 

 

on the dc=example,dc=com node:

 

 

 

 

 

aci:(version 3.0; acl "all-read"; allow (read) userdn="ldap:///all";)

 

 

 

 

 

 

 

Userdnuserdn = "ldap:///anyone";

 

 

The bind rule is evaluated to be true for anyone; use this

 

keyword

 

 

 

 

 

keyword to provide anonymous access to your directory.

 

containing

 

 

 

 

 

 

 

the

 

 

For example, if you want to allow anonymous read and search

 

anyone

 

 

 

 

 

access to the entire example.com tree, you would create the

 

keyword

 

 

 

 

 

following ACI on the dc=example,dc=com node:

 

 

 

 

 

 

 

 

 

 

aci: (version 3.0; acl "anonymous-read-search"; allow

 

 

 

 

 

(read,search) userdn = "ldap:///anyone";)

 

 

 

 

 

 

 

Userdnuserdn = "ldap:///parent";

 

 

The bind rule is evaluated to be true if the bind DN is the

 

keyword

 

 

 

 

 

parent of the targeted entry.

 

containing

 

 

 

 

 

 

 

the

 

 

For example, if you want to grant write access to every user's

 

parent

 

 

 

 

 

child entries, you would create the following ACI on the

 

keyword

 

 

 

 

 

dc=example,dc=com node:

 

 

 

 

 

 

 

 

 

 

aci:(version 3.0; acl "parent access"; allow (write)

 

 

 

 

 

userdn="ldap:///parent";)

 

 

 

 

 

 

Table 6.4. userdn Keyword Examples

189

Page 209
Image 209
HP UX Red Hat Direry Server Software manual Userdn Keyword Examples, Defining Group Access groupdn Keyword