Hello there, with the new 2.0.0 release, the API documentation does not appear to match the module's new API.
Python 3.9.7 (default, Sep 10 2021, 14:59:43)
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pam
>>> p = pam.authenticate()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/var/lib/virtualenvs/system-config/lib/python3.9/site-packages/pam/__init__.py", line 125, in authenticate
return __PA.authenticate(*args, **kvargs)
TypeError: authenticate() missing 2 required positional arguments: 'username' and 'password'
This can be overcome by calling as such:
result = pam.authenticate(username='foo', password='bar')
However, pam.authenticate no longer returns a boolean, it returns the internal PAM_* constants
Hello there, with the new 2.0.0 release, the API documentation does not appear to match the module's new API.
This can be overcome by calling as such:
result = pam.authenticate(username='foo', password='bar')However,
pam.authenticateno longer returns a boolean, it returns the internal PAM_* constants