Skip to content
Snippets Groups Projects
Commit a0f7f83f authored by Piotr Gawron's avatar Piotr Gawron
Browse files

ldap login is case insensitive, but in our system such logins are lowercased

parent aff4665a
No related branches found
No related tags found
2 merge requests!541version 12.1.3 into master,!523Resolve "LDAP connector problem with case insensitive logins"
Pipeline #7844 passed
...@@ -616,8 +616,9 @@ public class UserService implements IUserService { ...@@ -616,8 +616,9 @@ public class UserService implements IUserService {
try { try {
List<String> ldapUserNames = getLdapService().getUsernames(); List<String> ldapUserNames = getLdapService().getUsernames();
for (String string : ldapUserNames) { for (String string : ldapUserNames) {
if (result.keySet().contains(string)) { String ldapLogin = string.toLowerCase();
result.put(string, true); if (result.keySet().contains(ldapLogin)) {
result.put(ldapLogin, true);
} }
} }
} catch (LDAPException e) { } catch (LDAPException e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment