A Django PAM authentication backend implementation.
The MIT License (MIT)
Overview
This is a simple authentication backend that uses the python-pam package. Django PAM can be used in an SSO (Single Sign On) environment or just with a single box where you want to log into a Django app with your UNIX login.
Updated for Django 6.0.x and Python 3.13.
Python 2.x has been depricated. If you need a version of Django PAM use version 2.0.1.
Provides
PAM Authentication Backend
Login and Logout Views
Templates for both standard and modal authentication.
Supporting JavaScript and CSS.
Quick Start
You will need to add Django PAM to your INSTALLED_APPS:
INSTALLED_APPS = [
...
'django_pam',
]
Next you will need to add the Django PAM backend to the AUTHENTICATION_BACKENDS:
AUTHENTICATION_BACKENDS = [
'django_pam.auth.backends.PAMBackend',
'django.contrib.auth.backends.ModelBackend',
]
The user that runs the application needs to be a member of the /etc/shadow file group, this is usually the web server user. This is necessary so the web server can authenticate other users. To do this run the command below with the proper user:
$ sudo usermod -a -G shadow <user>
Complete Documentation can be found on Read the Docs at: Django PAM
Metadata
Release files for django-pam 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_pam-3.0.1.tar.gz | 13.8 kB | Without provenance | Details for django_pam-3.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_pam-3.0.1-py3-none-any.whl | Python 3 | none | any | Details for django_pam-3.0.1-py3-none-any.whl |
Total release size: 34.6 kB
Release files / django_pam-3.0.1.tar.gz
| Download URL | django_pam-3.0.1.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da1094b049debfac0dfd052c420ca82306ff6a95f7f9e72106bdb5b4e5dd70c2
|
|
BLAKE2b-256 checksum How to use checksums |
2969525b06667dabbb3b65b5eff8e6a45450113cf041d6600d9728212bd1357f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1
|
Release files / django_pam-3.0.1-py3-none-any.whl
| Download URL | django_pam-3.0.1-py3-none-any.whl |
|---|---|
| Size | 20.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
499ef457eac351c2f132c130a2aba1bb3adadb177a9510fa36271fcec72aff43
|
|
BLAKE2b-256 checksum How to use checksums |
079b05ad68cdb38c32c045303493dd70538b7bbc523af9ea93e927deb6b53946
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.12.3 HTTPX/0.28.1
|
Security for django-pam 3.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.