Hi Fran, I also tried this one using another example. import ldap l=ldap.initialize('ldap://ad.mydomain.com') l.simple_bind_s('cn=myuser ou=users,ou=kjc,ou=institute,dc=ad,dc=mydomain,dc=com','password')
then i get (97, []) On 26 Aug., 14:10, max <dulip.withan...@gmail.com> wrote: > > Do you have this needed line anywhere? > > from gluon.contrib.login_methods.ldap_auth import ldap_auth > Yes. > > > Do you have ldap installed in the version of Python that you're > > running? > > try: > > import ldap > > i installed python-ldap 2.3.9 and import ldap functions without > failures. > > > > > > auth.settings.login_methods=[ldap_auth > > > (mode='ad',server='ad.mydoman.com', > > > base_dn='ou=users,ou=kjc,ou=institute,dc=ad,dc=mydomain,dc=com')] > > > What is the login that your users use? > > usern...@ad.domain.com? > > as a windows user we log as <username> in Domain AD (main domain > controller) > emails are <username> @ad.mydomain.com > > > I would expect it to be usern...@domain.com & hence: > > base_dn='ou=users,ou=kjc,ou=institute,dc=mydomain,dc=com' > > i tried it also without dc=ad but doesn't accept my password. > > I changed the form just to accept the username instead of email but > also didn't work. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---