element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.01k stars 1.96k forks source link

Logging in as "Username" instead of "username" returns weird, misleading error #6318

Closed altergui closed 6 years ago

altergui commented 6 years ago

Steps to reproduce

possible expected results:

actual result:

Version information

For the web app:

altergui commented 6 years ago

Can't reproduce the behaviour in https://riot.im/app/, so it's most likely specific to the disroot.org deployment scheme. Sorry for the noise, hope it might still be useful for future reference.

enannos commented 4 years ago

Is there a possibility to make riot ignore the upper/lower case?

t3chguy commented 4 years ago

It's not about riot, riot just sends it to synapse where usernames are case sensitive

enannos commented 4 years ago

Thank you for the quick reply. Is there a way to "transform" the username(on the login page) toLowerCase before we send it to synapse?

t3chguy commented 4 years ago

But then what if someone's username is uppercase? These exist.

turt2live commented 4 years ago

Please use #riot:matrix.org for support questions, or open a new issue if you believe there's a bug in Riot. Using a year old issue for questions is not ideal.

enannos commented 4 years ago

@turt2live you are right. This issue drives me just crazy for the last month. @t3chguy We are using the matrix LDAP connector(we used to work with mxisd until the development stopped) to authenticate the users against our AD and for the uid we user the "sAMAccountName" which, as far as I know, is always lowercase

t3chguy commented 4 years ago

Yes but riot doesn't know that and shouldn't know that, it should be up to that connector