I am using a Enterprise version 1.19.5. I see the LDAP auth in ROR misses out if usernames doesn’t match case.
Can we make users match without case (make it case insensitive) ?
Sounds like a Windows vs Unix philosophical issue
We could create a flag in the configuration about this. But because the majority of the LDAP servers are actually Active Directory servers, it would make sense to make case insensitive the default?
We could create a flag, but this is not a good idea to make it case insensitive by default.
It breaks the current contract and we could potentially change behaviour of existing configurations after upgrade - for me it could be a potential security hole.
Elastic engineers have a good point about this, they were basically willing to introduce string transformations for usernames BEFORE they’re sent to LDAP authentication. I.e. toUppercase/toLowercase/capitalized.
Which makes sense, because the case sensitivity in authentication phase is a trait of the LDAP server, rather than our connector. So the best we can do is normalize the casing of the username before serving to the server.
@praveenmak On the other hand, how about configuring the LDAP server to accept case insensitive user names? Should be possible.
@praveenmak we cannot make LDAP user names case insensitive (only the LDAP server can, but you have no control over it) So we could only introduce a flag to take the username, and apply a transformation to it: for example toUpper, toLower, capitalize.
OK now I understand this better! So because case sensitivity is at discretion of the authentication rule (auth_key_, or ldap_auth, etc) the local groups engine of ROR should let the usernames match in an equally liberal way, ignoring the case. This is something that ROR could accommodate, and it would remove some WTF moments while debugging ACLs involving local groups and case-insensitive external authentication systems.
Hi @praveenmak, we added this to our internal Jira, but the priority is low because we are prioritising Enterprise customers support and roadmap before free users’ features.