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

How to handle authentication without user password in ldap tree #39

Closed
the2nd opened this issue May 5, 2015 · 3 comments
Closed

How to handle authentication without user password in ldap tree #39

the2nd opened this issue May 5, 2015 · 3 comments

Comments

@the2nd
Copy link

the2nd commented May 5, 2015

i'm trying to implement an read-only ldap server for OTPme (https://www.otpme.org/) using ldaptor and as OTPme focus on OTPs i dont want to add a static password (attribute) to the ldap tree. instead it would be great to get the username/OTP from ldaptor for verification.

is there any interface in ldaptor for this?

reference: http://twistedmatrix.com/pipermail/twisted-python/2015-May/029447.html

@the2nd
Copy link
Author

the2nd commented May 6, 2015

ok, i figured it out myself. :)

for everyone who wants to do the same. you just have to add a bind() method to your "db" class. an example bind() method can be found in entry.py (BaseLDAPEntry()).

@psi29a
Copy link
Contributor

psi29a commented May 6, 2015

I take it you have looked at the examples?
https://ldaptor.readthedocs.org/en/stable/

There aren't many there, but we could always do for more.

@adiroiban
Copy link
Member

I think that this can be closed.

The "acting" code is here :

d = entry.bind(auth)

The server is searching for the entry and then calling the bind method on that LDAP entry.

Thanks for the info

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