Would you post your define ldap_auth method, you may miss some parameters, for instance you need to pass "db", but this is not stated in the book I think, I found this info on mailing list.
Richard On Mon, Sep 16, 2013 at 1:06 PM, D. <s54012...@gmail.com> wrote: > Dear community, > > I'm trying to user ldap to authenticate against an MS AD as described in > the book but I keep getting "Invalid login". I can connect and verify my > login through the normal pyhton-console using simple_bind_s and whoami_s > just fine - not using web2py however :-( Apparently there's not even a > request to the ldap-server: tcpdump on the server does not show any > ldap-packets at all when trying to authenticate with web2py (I can see the > ldap-process when doing it manually as described). > Where and how does web2py write it's auth-logging? I tried adding a > seperate logger in login_methods/ldap_auth, but it's never even called. All > of the other logging-entries (scheduler etc.) work and are written to > web2py/logs/web2py.log. > > Any help greatly appreciated! > > -- > 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 web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.