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.
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
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.