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 details)
Built Distribution
File details
Details for the file pamela-1.0.0.tar.gz
.
File metadata
- Download URL: pamela-1.0.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65c9389bef7d1bb0b168813b6be21964df32016923aac7515bdf05366acbab6c |
|
MD5 | 5fc14f5275383ed8bdd509007af0323d |
|
BLAKE2b-256 | 484d738e0122a263b6631c7112b3e98566a53afe7d00eefc6355370ec6d9edea |
File details
Details for the file pamela-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pamela-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b54be508a13bb3d983d117f7b069b31545003ae989791f467cf941376c807f20 |
|
MD5 | cddaf7cea886eca7f6a607cb4b3919e9 |
|
BLAKE2b-256 | 9cb8f7592a30aa95ffdea4f2e01aca87c15a7a315ba34f835235291eeba22779 |