Python interface to OpenBSD's BSD Auth.
Project description
py-bsdauth
- Python interface to OpenBSD's BSD Auth
- Currently only implements auth_userokay(3) passwd authentication style.
Note
- Your application must be in the 'auth' group to call auth_userokay(3):
usermod -G auth <yourdaemonuser>
Usage:
>>> from bsdauth.bsdauth import UserOkay
>>> u='user1'
>>> pw='goodpassword'
>>> uo=UserOkay(u,pw)
>>> uo.login()
True
>>> pw='badpassword'
>>> uo = UserOkay(u,pw)
>>> uo.login()
False
>>> ur='baduser'
>>> pw='goodpassword'
>>> uo = UserOkay(ur,pw)
>>> uo.login()
False
>>> exit()
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
py-bsdauth-1.1.2.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py-bsdauth-1.1.2.tar.gz.
File metadata
- Download URL: py-bsdauth-1.1.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
921918ea4862010f8d5621dbda2009e358f43de6ec0eccd34d8b421293423114
|
|
| MD5 |
5afb2519eb718937deb4d743770b70ab
|
|
| BLAKE2b-256 |
05bd894c5dcd9148a3ec502f0248b046e312ae2cba1cfcd7146bc4fe33bfcc69
|
File details
Details for the file py_bsdauth-1.1.2-py3-none-any.whl.
File metadata
- Download URL: py_bsdauth-1.1.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38fafe5a0d70241f873d04b330a7f823de4e1caff338da74c5ff4dd5017f30c1
|
|
| MD5 |
1be989a31546b07b0783196f87aa6c8f
|
|
| BLAKE2b-256 |
994a1ba62f89d1247ba4e837ce2ccb50ffaf5f0e582a431d684cbf74fcad2e12
|