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

DN lookup #19

Open
fwPunsher opened this issue May 22, 2017 · 2 comments
Open

DN lookup #19

fwPunsher opened this issue May 22, 2017 · 2 comments

Comments

@fwPunsher
Copy link

Are there any plans to add a feature to lookup the userDN before trying the bind?
In the current implementation the authentication will only work if all users trying to logon are placed in the same OU (namely the one specified via userFilter).

I would welcome something like something like:
-making userFilter an actiual user (RFC compliant) LDAP Filter like eg "(objectClass=User)"
-adding an option for a base dn for searches
-adding an option for search Scope
-adding an option for bindDN
-adding an option for bindPW
-replacing the toUserDN function with a function that searches for the user with the above options and returns the dn of the user if found.
-using the returned dn for checking the password by opening another LDAP connection.

@chrisgray
Copy link
Contributor

I agree it's pretty simple and restrictive at the moment. All your suggestions sound great!

@mattharr
Copy link

mattharr commented Jul 2, 2018

Hi,

I needed to authenticate against Active Directory, so had to do a bit of work to do user searching and lookup.

Would this be of interest if I try put together a pull request for this?

Cheers,

Matt

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

3 participants