Skip to content

Documentation does not match API #31

Description

@axonxorz

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions