Red Hat DIRECTORY SERVER 7.1 - ADMINISTRATOR Administrator's Manual page 229

Table of Contents

Advertisement

The bind rule is evaluated to be true if the bind DN belongs to the role specified in
the
exampleEmployeeReportsTo
you create a nested role for all managers in your company, you can use this
mechanism to grant managers at all levels access to information about employees
that are at a lower grade than themselves.
NOTE
This example assumes that you have added the
exampleEmployeeReportsTo
employee entries contain this attribute. It also assumes that the
value of this attribute is the DN of a role entry.
For information on designing your schema, refer to Red Hat
Directory Server Deployment Guide. For information on adding
attributes to the schema, see "Creating Attributes," on page 377.
The DN of the role can be under any suffix in the database. If, in addition, you are
using filtered roles, the evaluation of this type of ACI uses a lot of resources on the
server.
If you are using a static role definition and the role entry is under the same suffix as
the targeted entry, you can use the following expression:
userattr = "ldap:///dc=example,dc=com?employeeReportsTo#ROLEDN"
In this example, the role entry is under the
can process this type of syntax more quickly than the previous example.
Example with LDAPURL Bind Type
The following is an example of the
based on an LDAP filter:
userattr = "myfilter#LDAPURL"
The bind rule is evaluated to be true if the bind DN matches the filter specified in
the myfilter attribute of the targeted entry. The myfilter attribute can be replaced by
any attribute that contains an LDAP filter.
Example with Any Attribute Value
The following is an example of the
based on any attribute value:
userattr = "favoriteDrink#Beer"
The bind rule is evaluated to be true if the bind DN and the target DN include the
attribute with a value of
favoriteDrink
attribute of the targeted entry. For example, if
attribute to the schema and that all
dc=example,dc=com
keyword associated with a bind
userattr
keyword associated with a bind
userattr
.
Beer
Chapter 6
Bind Rules
suffix. The server
Managing Access Control
229

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents