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

LDAP_FILTER with or / login with mail or uid #78

Open
baba2k opened this issue Oct 11, 2023 · 1 comment
Open

LDAP_FILTER with or / login with mail or uid #78

baba2k opened this issue Oct 11, 2023 · 1 comment

Comments

@baba2k
Copy link

baba2k commented Oct 11, 2023

Hi @wheelybird ,

is it possible to login with uid or mail? Actually (&(uid=baba)) will be added, so no "OR" is possible:
(&(|(uid=baba)(mail=baba))(objectClass=person)(memberOf=cn=openvpn,ou=groups,dc=example,dc=com))

Thanks!

@wheelybird
Copy link
Owner

Hi. Sorry about the slow reply.
LDAP_FILTER is, as you say, appended to the user lookup and is used to filter the results rather than specify which attribute is used for the user match. LDAP_LOGIN_ATTRIBUTE is used to specify that attribute, but this uses maps ("map passwd uid $login_attribute") and I don't believe you can have multiple attributes mapped to uid.
Looking though the man pages for nscld.conf I don't believe that logging in with mail or uid is possible (https://manpages.ubuntu.com/manpages/focal/en/man5/nslcd.conf.5.html)

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

No branches or pull requests

2 participants