using direct ldap class I am able to log in using the following settings login = '[email protected]' PWD = 'password' server = 'ldap://localhost'
l = ldap.initialize(server) l.set_option(ldap.OPT_REFERRALS, 0) l.protocol_version = 3 l.simple_bind_s(login, PWD): I really can't get it working with web2py DAL. How can I check if it is communicating with the active directory or not? from gluon.tools import Auth auth = Auth(globals(), db) auth.define_tables(username=True) from gluon.contrib.login_methods.ldap_auth import ldap_auth auth.settings.login_methods = [ldap_auth(mode='ad', server='localhost', base_dn='dc=domain,dc=com')]

