Skip to content

feat(ldap): allow specifying multiple attributes on username input #4061

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yardenshoham
Copy link

Overview

In some use cases, it may be desirable to log in using either a username or an email address. Administrators no longer need to select a single field and can specify multiple fields to be recognized as "username. "

What this PR does / why we need it

Changes the userSearch.username to a comma-separated list of attributes.

Special notes for your reviewer

This change is backward-compatible. Tests have been added.

In some use-cases, one would like to login using either their username or email. Administrators now don't have to choose a single field but may specify multiple fields to count as "username".

This change is backwards-compatible.

Signed-off-by: Yarden Shoham <[email protected]>
@yardenshoham yardenshoham force-pushed the multiple-username-attributes-ldap branch from 8ae1c73 to 8882c7d Compare March 31, 2025 17:00
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.

Support LDAP login based on sAMAccountName instead of the email
1 participant