Closed mk-hs closed 3 years ago
having the same problem... would be a very important feature, as one can not always control the LDAP content
I tried to find the relevant code and tried to write a solution. As I am not very experienced with java and especially the ma1sd code I don't really know if this if correct. Should I just open a pull request and then you tell me how to do better?
When SSO is configured for matrix, usernames are properly converted to lowercase upon login.
uid: usER --> @user:domain.com
This is necessary since matrix only allows lowercase in usernames.When trying to map an ldap directory to user with ma1sd, no such sanitation happens. If the uid for a specific users includes uppercase letters, the resulting matrix id is unusable.
uids: usER --> @usER@domain.com
Matrix treats@usER:domain.com
and@user:domain.com
as different users.I was unable to find any documentation on it, is it possible to sanitize ldap attributes like this?