Python pam module supporting py3 (py2 support still exists but is deprecated)
Surface fixes
obj.code
attributePamAuthenticate.authenticate()
method signature and docstring to both of the new and legacy interfacesPamAuthenticate.authenticate()
type hinting so it didn't interfere with the docstringUnder the hood changes
The surface functionality hasn't changed much but a few bugs have been fixed. Under the hood, a lot has changed. Functionality has now been moved into a class that helped with value tracking. I planned on removing Python 2
support but was convinced to leave it in for now as apparently there are still a lot of python2 users. :confused: :man_shrugging:
Most testing has moved to occur underneath tox
, this is superior as it provides for testing in a clean environment and an installed environment.
pam_unix.so
and unix_chkpwd
examples provided for testingTEST_USERNAME
and TEST_PASSWORD
to function and those are marked SKIP if not found in the environment. Sorry :-} -- mocking the internals of libc and libpam are far too hairy for the trivial bit of testing that can be verified by hand
Name | Stmts | Miss | Excluded | Branch | BrPart | Cover |
---|---|---|---|---|---|---|
pam/__init__.py |
59 | 0 | 2 | 2 | 0 | 100% |
pam/__internals.py |
281 | 0 | 14 | 76 | 0 | 100% |
TOTAL | 340 | 0 | 16 | 78 | 0 | 100% |
htmlcov/