Python interface to OpenBSD's BSD Auth api in libc.
Project description
py-bsdauth
- Python interface to OpenBSD's BSD Auth api in libc
- Currently only implements auth_userokay(3) since this is most suitable for authenticating to OpenBSD from python
Note
- Your application must have root privileges in order to use this module.
Usage:
>>> from bsdauth.bsdauth import UserOkay
>>> u='user1'
>>> pw='goodpassword'
>>> uo=UserOkay(u,pw)
>>> uo.login()
True
>>> pw='badpassword'
>>> uo = UserOkay(ur,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.0.0.tar.gz
(2.4 kB
view details)
File details
Details for the file py-bsdauth-1.0.0.tar.gz.
File metadata
- Download URL: py-bsdauth-1.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
578e3f2600cafbe53dba2cbce6fdb4293366a5a281bb9d62dbc148e846b21ccf
|
|
| MD5 |
c489010d87bbd7dc11417103e7c7e20a
|
|
| BLAKE2b-256 |
d41355a13e7c6d8fb408bebe590996bd652d14d16578f4a8ad366a65b031ba4a
|