When I tried to get ldap_auth working I used wireshark to look at the protocol exchange. I was able to see that I had the ou set incorrectly and when corrected the authentication worked perfectly.
... some changes I made to db.py ................. from gluon.contrib.login_methods.ldap_auth import ldap_auth ... auth.define_tables(username=True) ... auth.settings.login_methods.append(ldap_auth(mode='ad', server='machine.domaincontroller.com', base_dn='ou=users,dc=domaincontroller,dc=com')) .................................................. On Feb 11, 7:30 pm, Panupat <[email protected]> wrote: > I'm really stuck here, would greatly appreciate any help. > > Is there a way to check or test if the DAL is communicating with the > ldap "ad" host? It seems like no matter what settings I used to the > server and base_dn, even ones that are obviously wrong, I am only > getting the same "invalid login" error. > > I read in some older discussion that I should use > > auth.settings.login_methods = [ldap_auth(mode='ad', ..... > > instead of > > auth.settings.login_methods.append(ldap_auth(mode='ad', ..... > > Does this still apply to the current version? I'm trying them both > without luck so far.

