Skip to content

Added ldap config setting to lower case usernames

What does this MR do?

Adds a new LDAP config setting to lower case the username if enabled.

This setting only applies to new LDAP users.

Are there points in the code the reviewer needs to double check?

I've also tried to apply this setting for existing LDAP users but one problem raises. The same as if you try to rename your username from 'JOHN' to 'john'. The method move_dir in Storage::LegacyNamespace raises an exception saying that there is already a repository with that name.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #22607 (closed)

Related MR

omnibus-gitlab!2254 (merged)

Merge request reports