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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/nethsec/users/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ def ldif2users(ldif_data, user_attr="uid", display_attr="cn"):
for dn, record in parser.parse():
if user_attr in record:
user = {}
user["name"] = record[user_attr][0]
user["name"] = record[user_attr][0].lower()
if display_attr in record:
user["description"] = record[display_attr][0]
else:
Expand Down
Loading