From: André Malo require ldap-filter
+ directive, and the search filter successfully finds a single user
+ object that matches the dn of the authenticated user.ldap-user
, ldap-dn
,
- ldap-group
and ldap-attribute
. Other
- authorization types may also be used but may require that additional
- authorization modules be loaded.
ldap-group
, ldap-attribute
and
+ ldap-filter
. Other authorization types may also be
+ used but may require that additional authorization modules be loaded.
The require ldap-filter
directive allows the
+ administrator to grant access based on a complex LDAP search filter.
+ If the dn returned by the filter search matches the authenticated user
+ dn, access is granted.
The following directive would grant access to anyone having a cell phone + and is in the marketing department
+ +require ldap-filter &(cell=*)(department=marketing)
The difference between the require ldap-filter
directive and the
+ require ldap-attribute
directive is that ldap-filter
+ performs a search operation on the LDAP directory using the specified search
+ filter rather than a simple attribute comparison. If a simple attribute
+ comparison is all that is required, the comparison operation performed by
+ ldap-attribute
will be faster than the search operation
+ used by ldap-filter
especially within a large directory.