I have a django application where users should be able to login according to the system's shadow database. I found this login backend which uses python-pam, as far as I can tell. While installing the former makes the login work on my local machine (Arch linux) it doesn't on the server where I want the application to run (Debian Squeeze).

The thing is, I don't know how to dig for the error. The authentication just returns false and I cannot find any log files for the PAM library on the system. Where would you start to dig?

Update: I found that /var/log/auth.log is used by pam. The following appears when trying to login. (oli is my username):

Have you checked the version of your Django installed on those OS as well as Python version, web server version and database server version? Making sure they are the same may be helpful.
–
xiaohan2012Jan 4 '12 at 16:00