Skip to content

LDAP auth username case sensitive #367

@hamsterbacke

Description

@hamsterbacke

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions