Summary
LDAP Group/Attribute Sync stopped working — every sync ends as Canceled with “Scanned 0 LDAP users and 0 groups,” even though all LDAP Wizard tests pass and there are no errors in pod logs.
Steps to reproduce
-
Mattermost environment:
-
Versions tested: 10.9.1 → 10.10.1 → 10.11.1 (issue in all)
-
Deployment: Kubernetes
-
Database: PostgreSQL 15.8
-
LDAP provider: authentik
-
Auth method: SAML SSO (LDAP used only for sync; no direct LDAP logins)
-
-
Configure LDAP Group Sync (valid BaseDN, user filters, attributes, group attributes — all pass tests in LDAP Wizard).
-
Run Synchronize Now from System Console → LDAP Synchronization.
Expected behavior
Sync should find and process users and groups according to LDAP filters, updating group memberships and attributes in Mattermost.
Observed behavior
-
Sync immediately finishes as Canceled.
-
Details:
Scanned 0 LDAP users and 0 groups
. -
All LDAP Wizard tests are successful:
-
Test Connection
-
Test Filters
-
Test Attributes
-
Test Group Attributes
-
-
ldapsearch
with same filters returns expected users and groups. -
RemoteId
values for groups in DB match those returned by LDAP. -
No errors in pod logs during sync.