Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tehmaze/django-pam
A simple PAM authentication backend for Django
https://github.com/tehmaze/django-pam
Last synced: 9 days ago
JSON representation
A simple PAM authentication backend for Django
- Host: GitHub
- URL: https://github.com/tehmaze/django-pam
- Owner: tehmaze
- License: bsd-2-clause
- Created: 2012-02-22T09:08:48.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-10-14T14:38:55.000Z (about 8 years ago)
- Last Synced: 2024-05-01T20:37:58.048Z (6 months ago)
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 35
- Watchers: 7
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
django-pam
==========
A simple PAM authentication backend for Django. Add the folder ``dpam``
somewhere on your python path and add 'dpam.backends.PAMBackend' to your
``settings.py``::AUTHENTICATION_BACKENDS = (
...
'dpam.backends.PAMBackend',
...
)Now you can login via the system-login credentials. If the user is
successfully authenticated but has never logged-in before, a new ``User``
object is created. By default this new ``User`` has both ``is_staff`` and
``is_superuser`` set to ``False``. You can change this behavior by adding
``PAM_IS_STAFF=True`` and ``PAM_IS_SUPERUSER`` in your ``settings.py`` file.If you do not want a ``User`` record to be created automatically, use
``PAM_CREATE_USER=False`` in ``settings.py``. This is useful in situations
where you want to use PAM for authentication but not for authorization.