Just found it in the manual <http://web2py.com/books/default/chapter/29/09/access-control#Manual-Authentication>. It's done with:
user = auth.login_bare(username, password) or in my case: login_is_valid = bool(auth.login_bare(username, password)) On Friday, August 26, 2016 at 5:40:59 PM UTC-5, Antonio Salazar wrote: > > I have a working application which does LDAP authentication exclusively. > I'm adding a a web service that generates an access token if the user and > password passed to it by JSON are valid. > > I'm not sure about how to validate the account against LDAP inside the web > service, but I'd really like to reuse the parent app configuration. > -- 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/d/optout.