Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(users): force user name to lower case #81

Merged
merged 1 commit into from
Dec 10, 2024
Merged

fix(users): force user name to lower case #81

merged 1 commit into from
Dec 10, 2024

Conversation

gsanchietti
Copy link
Member

@gsanchietti gsanchietti commented Dec 10, 2024

Users inside a remote LDAP are usually matched in case-insensitive mode.

Make sure to always force the username to lower case to avoid mismatch when the remote LDAP has names in uppercase (like AD): this change will fix access for OpenVPN users using the external LDAP.

Note that such users are already imported in lower case inside the users db.

NethServer/nethsecurity#966

Users inside a remote LDAP are usually matched in case-insentive
mode.

Make sure to always force the username to lower case to avoid
mismatch when the remote LDAP has names in uppercase (like AD):
this change will fix access for OpenVPN users using the external
LDAP.

Note that such users are already imported in lower case inside
the users db.
@gsanchietti gsanchietti requested a review from Tbaile December 10, 2024 08:54
@gsanchietti gsanchietti merged commit 1506384 into main Dec 10, 2024
2 checks passed
@gsanchietti gsanchietti deleted the issue966 branch December 10, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants