HP UX Red Hat Direry Server Software manual Wildcards, Examples, ScenExamplerio Description

Models: UX Red Hat Direry Server Software

1 638
Download 638 pages 23.73 Kb
Page 208
Image 208

Chapter 6. Managing Access Control

NOTE

Do not specify a hostname or port number within the LDAP URL. LDAP URLs always apply to the local server.

For more information about LDAP URLs, see Appendix C, LDAP URLs.

4.2.6. Wildcards

You can also specify a set of users by using the wildcard character (*). For example, specifying a user DN of uid=u*,dc=example,dc=com indicates that only users with a bind DN beginning with the letter u are allowed or denied access based on the permissions you set.

From the Directory Server Console, you set user access from the Access Control Editor. For more information, see Section 5, “Creating ACIs from the Console”.

4.2.7. Examples

 

ScenExamplerio

 

 

Description

 

 

 

 

 

 

Userdnuserdn = "ldap:///uid=*,dc=example,dc=com";

 

 

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

 

keyword

 

 

directory using any distinguished name of the specified pattern.

 

containing

 

 

For example, both of the following bind DNs would be

 

an

 

 

evaluated to be true:

 

LDAP

 

 

uid=ssarette,dc=example,dc=com

 

URL

 

 

 

 

 

uid=tjaz,ou=Accounting,dc=example,dc=com

 

 

 

 

 

 

 

 

This bind DN would be evaluated to be false:

 

 

 

 

cn=Babs Jensen,dc=example,dc=com

 

 

 

 

Userdnuserdn="ldap:///uid=bj,dc=example,dc=com

The bind rule is evaluated to be true if the client binds as either

 

keywordldap:///uid=kc,dc=example,dc=com";

 

 

of the two supplied distinguished names.

 

containing

 

 

 

 

logical

 

 

 

 

OR

 

 

 

 

of

 

 

 

 

LDAP

 

 

 

 

URLs

 

 

 

 

 

 

 

 

 

Userdnuserdn !=

 

 

The bind rule is evaluated to be true if the client is not binding

 

keyword"ldap:///uid=*,ou=Accounting,dc=example,dc=com";as

a UID-based distinguished name in the accounting subtree.

 

excluding

 

 

This bind rule only makes sense if the targeted entry is not

 

a

 

 

under the accounting branch of the directory tree.

 

specific

 

 

 

 

LDAP

 

 

 

 

URL

 

 

 

 

 

 

 

 

188

Page 208
Image 208
HP UX Red Hat Direry Server Software manual Wildcards, Examples, ScenExamplerio Description