to make w2p work with ad I had to add this line to gluon/contrib/login_methods/ldap_auth.py:
ldap.set_option(ldap.OPT_REFERRALS, 0) like this: import ldap ldap.set_option(ldap.OPT_REFERRALS, 0) #LINE ADDED except Exception, e: On Thu, Jul 28, 2011 at 10:56 PM, Ismael Serratos <ialejandr...@gmail.com> wrote: > Well as you tell may be is because you are trying to get users from another > domain, different IP mean different domains, so users aren't the same, have > you tried to login with an acoount from 10.0.1.x?? I mean, not the one you > use in .0.0.x? > > On Thu, Jul 28, 2011 at 6:06 PM, Brian M <bmere...@gmail.com> wrote: >> >> Web2py always says invalid login. Running the same steps in plain python >> gives an exception saying the user lookup cannot be performed without a >> valid binding which would mean it is not accepting the username and password >> provided. But again the exact same code works fine from the other subnet. >> >> Haven't had a chance to try wireshark yet. Will hopefully get some help >> from our it company next week >