PAM support

15 views
Skip to first unread message

mdipierro

unread,
Feb 17, 2010, 12:24:18 AM2/17/10
to web2py-users
web2py in trunk now support PAM authentication on Linux systems in two
ways

1) In admin.

web2py.py -a '<pam_user:root>'

now admin will require your 'root' password. You can specify other
users.

2) In apps

from gluon.contrib.login_methods.pam_auth import
pam_auth
auth.settings.login_methods.append(pam_auth())

Your auth_user table must have also a 'username' field since 'email'
will not do.

Anand Vaidya

unread,
Feb 17, 2010, 12:55:14 AM2/17/10
to web2py-users
Awesome!

So does that imply LDAP, AD, NIS/YP, /etc/passwd , etc etc all become
available?

Does it mean, if say, AD auth works on the host machine, it will work
for web2py too? In such a case, additional inputs such as domain_name
need to passed

Regards
Anand

mdipierro

unread,
Feb 17, 2010, 1:22:31 AM2/17/10
to web2py-users
I am not sure but I think so.

Whatever username:password you use to login into your machine should
now work in admin and apps. In admin you need to specify the username
a priori.

Reply all
Reply to author
Forward
0 new messages