LDAP Users cannot log-in when nicknames are longer then 64 characters
#30.541 aperta il 22 mar 2025
Metriche repository
- Star
- (32.880 star)
- Metriche merge PR
- (Merge medio 6g 5h) (318 PR mergiate in 30 g)
Descrizione
Users with long nicknames cannot be created due to the UserNicknameMaxRunes limit.
I have experienced this problem when trying to log in with a user that has a very long nickname.
These users exist due to a policy in our LDAP system.
User nicknames are created like so:
Office Location - Department Name - Sub-department Name - Team Name - Job Title - Full Name, which opens the possibility for slightly longer than 64-character names (the user I was using had 82 characters in the nickname).
Since this limitation is backed by the current SQL schema, my suggestion is to use the last 64 characters of the user's nickname instead of the full nickname.
This does not require any schema changes and would fix the issue.
This issue was observed on Mattermost EE v10.5.2 in Trial mode.