tehmaze / django-pam Goto Github PK
View Code? Open in Web Editor NEWA simple PAM authentication backend for Django
License: BSD 2-Clause "Simplified" License
A simple PAM authentication backend for Django
License: BSD 2-Clause "Simplified" License
Hi,
I installed package 'django-pam' using 'python setup.py install', the installation was successful. I added the entry in setting.py (fresh django 1.8.x installation) as below. After that I restarted django server and tried to login into http://admin url page. It was taking some time to reload but the LOGIN FAILED. Moreover, the Django superuser was unable to login into admin. I removed below entry from setting.py and the superuser was able to login. Please help me integrating this package.
AUTHENTICATION_BACKENDS = (
'dpam.backends.PAMBackend',
)
PAM_IS_STAFF = True
PAM_IS_SUPERUSER = True
This should be "except User.DoesNotExist", not trying to catch every type of exception which is bad practice.
Based on problems I am having, and comments like this one, it seems that this might be the case, but django doesn't typically run as root and the docs for this app don't mention requiring it to do so. If someone could provide a quick sanity-check about this I would appreciate it.
For details on what I'm seeing, see this issue I filed against python-pam, which seems to be the same pam module that runs under the hood of django-pam. Any help would be greatly appreciated!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.