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:
- This field's matching is based on regular expression
- It
is advisable to use the "Group Filter" instead of the query filter because of it
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.