Hi all,

Greetings!

I've written a python library for authenticating python code with OpenBSD 
system. Is someone working on similar port? If not, attached is the port I made 
and hopefully someone can OK this one.

- - pkg/DESCR
Python interface to OpenBSD's BSD Auth
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()
-- end DESCR



Thanks,

~ricardo

Attachment: py-bsdauth.tar.gz
Description: py-bsdauth.tar.gz

Reply via email to