You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the LDAP auth for login and allowed_users with the sAMAccountName.
The login is working successfull but sometimes the user can't see the scripts that it should be allowed to via allowed_users config.
I figured, that the case of the username on login is used for matching against allowed_users.
They logged in with "Bob" instead of bob and that prevents correct matching in allowd_users array.
As a quick fix I edited the file "auth/auth_ldap.py" and added .lower() in line 110: username = request_handler.get_argument('username').lower()
I guess this case problem is affecting every login method.
The text was updated successfully, but these errors were encountered:
hamsterbacke
changed the title
LDAP auth username case sensetive
LDAP auth username case sensitive
Nov 13, 2020
I use the LDAP auth for login and allowed_users with the sAMAccountName.
The login is working successfull but sometimes the user can't see the scripts that it should be allowed to via allowed_users config.
I figured, that the case of the username on login is used for matching against allowed_users.
They logged in with "Bob" instead of bob and that prevents correct matching in allowd_users array.
As a quick fix I edited the file "auth/auth_ldap.py" and added .lower() in line 110:
username = request_handler.get_argument('username').lower()
I guess this case problem is affecting every login method.
The text was updated successfully, but these errors were encountered: