Group Filter in Directory mapping rules

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

PAM Self-Hosted Articles
2 min read
L0 Member
No ratings

Question

What is the purpose of the “Group Filter” field in the directory mapping rules?

Answer

The "Group Filter" parameter allows customizing LDAP user queries for LDAP directories other than Active Directories to filter users that are members of a group whose name matches the pattern specified in the "Group Filter" field, the "Branch" field and optionally the "Query Filter" field. For example, GROUP FILTER: cn=Domain Users,cn=Groups,dc=domain,dc=com.

For Active Directory, this could be achieved simply by using the "MemberOf" LDAP variable in the Query Filter field. For example, the following LDAP query "memberof=cn=Domain Users,cn=Groups,dc=Domain,dc=com" would return every user that is a member of Domain Users group.
 
Please note the following:

This field's matching is based on regular expression
It is advisable to use the "Group Filter" instead of the query filter because of its simpler syntax (and in some cases, improved performance)
By default, the Group Filter parameter checks for one level of group membership. In order to recursively search for groups, you can enable "GroupRecursiveSearch" parameter in the directory profile file ("%Program Files%\PrivateArk\Server\LDAP\Profiles\<DIRECTORY>Profile.ini" but this can have a performance impact on large directory. Q:
What is the purpose of the “Group Filter” field in the directory mapping rules?

A:

The "Group Filter" parameter allows customizing LDAP user queries for LDAP directories other than Active Directories to filter users that are members of a group whose name matches the pattern specified in the "Group Filter" field, the "Branch" field and optionally the "Query Filter" field. For example: GROUP FILTER: cn=Domain Users,cn=Groups,dc=domain,dc=com.

 

For Active Directory, this could be achieved simply by using the "MemberOf" LDAP variable in the Query Filter field. For example: the following LDAP query "memberof=cn=Domain Users,cn=Groups,dc=Domain,dc=com" would return every user that is a member of Domain Users group.

 

Please note the following:

  1. This field's matching is based on regular expression
  2. It is advisable to use the "Group Filter" instead of the query filter because of it simpler syntax (and in some cases, improved performance)
  3. By default, the Group Filter parameter checks for one level of group membership. In order to recursively search for groups, you can enable "GroupRecursiveSearch" parameter in the directory profile file ("%Program Files%\PrivateArk\Server\LDAP\Profiles\<DIRECTORY>Profile.ini" but this can have a performance impact on large directory.
Rate this article: