PAM interface using ctypes
Project description
Pamela: yet another Python wrapper for PAM
There seems to be a glut of Python wrappers for PAM that have since been abandoned. This repo merges two separate efforts:
- gnosek/python-pam
- adds wrappers for a few more calls, e.g. opening sessions
- raises PamError on failure instead of returning False, with informative error messages
- simplepam
- adds Python 3 support
- resets credentials after authentication, apparently for kerberos users
Why?
Both projects appear to be abandoned, with no response to issues or pull requests in at least a year, and I need it for JupyterHub.
Use it
Install:
pip install pamela
Test:
python -m pamela -a `whoami`
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pamela-1.1.0.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file pamela-1.1.0.tar.gz
.
File metadata
- Download URL: pamela-1.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4b139fe600e192e176a2a368059207a6bffa0e7879879b13f4fcba0163481be |
|
MD5 | 282516018839cda3a46d59fb2a71db4e |
|
BLAKE2b-256 | b00ce89683efb8da719cf856cf8156dd7bc665c59d575035d9b44a229019dc27 |
File details
Details for the file pamela-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pamela-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4534bba9645665b01adfce0134772b0147faea72c278f67a1a732e7ebd46ec6 |
|
MD5 | a6bce958316dcddcc35aaef2fad2eeee |
|
BLAKE2b-256 | 195d4942d8635958d296ad7a55906bfbc5bdc7296397e30035963f0d7eedf2b5 |