After configuring the LDAP connection, go to LDAP → User Search. This section allows Rocket.Chat to locate users and groups in your directory that are permitted to log in.
Find user after login
When enabled, Rocket.Chat performs an additional search for the user’s Distinguished Name (DN) after a successful bind. This confirms that the bind operation completed correctly.
This setting helps prevent logins with empty passwords when such behavior is permitted by the Active Directory configuration.
Search Filter
Configure how Rocket.Chat searches for users in your LDAP directory.
Field | Description |
|---|---|
Base DN | The fully qualified Distinguished Name (DN) of the LDAP subtree to search for users and groups. Example: You can add multiple groups, but each must be defined within the same domain base as the users that belong to it. We recommend specifying the top level of your LDAP directory tree as the domain base and then using a filter to control access. If you specify restricted user groups, only users in those groups will be able to log in. |
Filter | Defines which users are allowed to log in. If no filter is specified, all users within the defined domain base can sign in. Active Directory example: openLDAP example (extensible match): |
Scope | Specifies the portion of the subtree to search. Valid LDAP scope values:
Default: |
Search Field | The LDAP attribute used to identify the user during authentication. Common options include:
You can use multiple values separated by commas to allow users to log in using different identifiers (for example, username or email). |
Search Page Size | The maximum number of entries returned per page. Example: Increasing this value may improve performance in large directories but can increase memory usage. |
Search Size Limit | The maximum total number of entries to return. Example: This value must be greater than Search Page Size. |
Group Filter
Use group filters to restrict user access based on groups defined in your LDAP directory. This is especially useful for OpenLDAP servers that do not support the memberOf filter.
Field | Description |
|---|---|
Enable LDAP User Group Filter | Turn on to limit access to users in specific LDAP groups. |
Group ObjectClass | Specifies the LDAP Common values (depending on directory implementation):
The correct value depends on your LDAP schema. |
Group ID Attribute | The LDAP attribute used as the group identifier. Common values:
This must match how groups are defined in your directory. |
Group Member Attribute | Specifies the LDAP attribute that defines group membership. Common values:
The correct value depends on how membership is stored in your LDAP server. |
Group Member Format | Defines the format used to match group members. Example: The placeholder The format must match how user DNs are stored within group membership entries in your directory. |
Group Name | The specific LDAP group that users must belong to in order to access Rocket.Chat. |
After configuring these fields, click Save changes, then run Test LDAP Search to validate your group filter setup.