Look into gluon/contrib/login_methods/ldap_auth.py

It contains an example of how to use ldap. I am not sure about kerberos. 
There is nothing in web2py for kerberos but I understand kerberos can 
authenticate using both ldap and x509 and for both there is an API.

If we need to add something and you can explain us what we may work on it.

Massimo

On Friday, December 21, 2012 12:26:30 AM UTC-6, saransh wrote:
>
>
> Hello,
>
> I have an application that is using ldap+kerberose for authentication.
>
> models/db.py has the following code to configure the login method:
>
> from gluon.tools import *
> mail = Mail()                                  # mailer
> auth = Auth(globals(),db)                      # 
> authentication/authorization
> crud = Crud(globals(),db)                      # for CRUD helpers using 
> auth
> plugins = PluginManager()
>
> from gluon.contrib.login_methods.pam_auth import pam_auth
>
> auth.settings.actions_disabled=['register','request_reset_password','profile','forgot_username','retrieve_username']
> auth.settings.login_methods=[pam_auth()]
> auth.settings.allow_basic_login = True  #for CLI access
> crud.settings.auth = None                      # =auth to enforce 
> authorization on crud
>
> I am unable to understand the flow from login to authentication. Need help 
> with that.
> I want to change the authentication process. I want the application to 
> authenticate users from the db instead ldap+kerberos.
> Please guide me how to do that?

-- 



Reply via email to