dexidp / dex

OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors
https://dexidp.io
Apache License 2.0
9.52k stars 1.71k forks source link

Support LDAP login based on sAMAccountName instead of the email #3849

Open anuviswa opened 1 week ago

anuviswa commented 1 week ago

Preflight Checklist

Problem Description

Is there a way to login a user based on the sAMAccountName instead of the email id using the LDAP connector? There are many legacy customers who would like to logon users using their configured sAMAccountName.

Proposed Solution

Support LDAP login based on sAMAccountName in addition to email based login.

Alternatives Considered

No response

Additional Information

No response

jsquyres commented 3 days ago

We would be happy to create a PR for this functionality if the Dex community would be interested in it. Should we do so?

@nabokihms @sagikazarmark Similar to https://github.com/dexidp/dex/pull/1058#issuecomment-2491635779, I'm pinging you because it looks like you both have recent commits in Dex, and you are both listed in MAINTAINERS.