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.0.0.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for pamela-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b54be508a13bb3d983d117f7b069b31545003ae989791f467cf941376c807f20 |
|
MD5 | cddaf7cea886eca7f6a607cb4b3919e9 |
|
BLAKE2b-256 | 9cb8f7592a30aa95ffdea4f2e01aca87c15a7a315ba34f835235291eeba22779 |