Skip to main content

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.1.0.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file py-bsdauth-1.1.0.tar.gz.

File metadata

  • Download URL: py-bsdauth-1.1.0.tar.gz
  • Upload date:
  • Size: 3.0 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

Hashes for py-bsdauth-1.1.0.tar.gz
Algorithm Hash digest
SHA256 49125a93a4fdf98433cb246f88d0e27a438ad01a05461ef7fd5a795f9212a0ea
MD5 e67d44a85786652417659340c001cc1a
BLAKE2b-256 c348af78b6bca37f7054ec63a9ee8d022303f0a171b8f0f38f6eb7330ee0ff34

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page