Summary
This article guides Mattermost admins through resolving LDAP binding issues and understanding group synchronization behaviors in LDAP-integrated Mattermost setups.
Scenario
Admins encounter errors while attempting to:
-
Bind to the LDAP server using a service account
-
Authenticate users via LDAP
-
Sync groups with expected user memberships
Common Bind Errors and Fixes
1. Invalid Bind Credentials
-
Error:
AD/LDAP Test Failure: Unable to bind to AD/LDAP Server. Check BindUsername and BindPassword
-
Fix: Use the correct Distinguished Name (DN) format for the service account:
CN=mattermost_svc,OU=Your OU,DC=domain,DC=local
2. Incorrect Bind Username Format
-
Don’t use
DOMAIN/username
orDOMAIN\username
-
Use the full DN as above
3. LDAP over TLS/STARTTLS
-
Port 636: Use
TLS
-
Port 389: Use
STARTTLS
orNone
depending on your server setup -
If testing without valid certs, enable Skip Certificate Verification
No Users Appearing After Sync
Possible Causes:
-
The
Email Attribute
is unset or references a blank value. Mattermost requires a non-empty, unique email-like value. -
Use
userPrincipalName
ifmail
is unavailable.
Solution:
-
Navigate to System Console > Authentication > AD/LDAP
-
Set
Email Attribute
touserPrincipalName
or another valid field that contains a unique email-style identifier.
LDAP Groups Have No Members?
Expected Behavior:
-
Mattermost requires the group object to contain either
member
oruniqueMember
attributes. -
These must include full DNs of the users as values.
Next Steps:
-
Inspect your LDAP group objects using
ldapsearch
or directory tools. -
Confirm that
member
oruniqueMember
attributes are present and correctly populated. -
Sync again from Mattermost.
Comments
Please sign in to leave a comment.