How do you bind to ldap in the first place, I mean when using ldap_auth.py?
Answer : your credentials... So, I guess you just use the credentials of the user that is used to authenticate users of web2py with ldap_auth.py In my case, I ask for the creation of user in Active Directory different then my personal user in order to bind and search AD and authenticate user... Hope it helps Richard On Fri, Oct 30, 2015 at 2:33 PM, Jonathan Renon <[email protected]> wrote: > > > On Friday, October 30, 2015 at 2:12:54 PM UTC-4, Richard wrote: >> >> Hello Jonathan, >> >> I think if you want to manage LDAP from web2py as you were requesting you >> will need much more then ldap_auth.py contrib which as it says it mains >> purpose is to authenticate user of web2py against LDAP instance... >> >> I guess you better look on the side of python-ldap ( >> http://www.python-ldap.org/index.html) >> >> Richard >> >> Hi Richard, > I was already planning to use python-ldap to manage the different > searches, the thing I can't figure out (and don't know if it is possible > actually) is how to use the same credentials to log in (in web2py) and > serve as a bind account (when using python-ldap inside the app to gather > info and make it displayed by web2py). > From the different answer to my post it seems like i can't get the > password saved in the db, and the connection used to authenticate the user > is closed after successful authentication. The only solution I can think of > then is to prompt again the username and password of the user to use it as > binding account, this imply that I have to securely store this data and it > makes ldap authentication "useless" for me (since the point of this > authentication was to gather those information). > > Is there a solution I'm missing for my problem ? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

