1Metadata-Version: 1.2
2Name: python-pam
3Version: 1.8.4
4Summary: Python PAM module using ctypes, py3/py2
5Home-page: https://github.com/FirefighterBlu3/python-pam
6Author: David Ford
7Author-email: david@blue-labs.org
8Maintainer: David Ford
9Maintainer-email: david@blue-labs.org
10License: License :: OSI Approved :: MIT License
11Download-URL: https://github.com/FirefighterBlu3/python-pam
12Description: python-pam
13        ==========
14
15        Python pam module supporting py3 (and py2)
16
17        Commandline example:
18
19        ```
20        [david@Scott python-pam]$ python pam.py
21        Username: david
22        Password:
23        0 Success
24
25        [david@Scott python-pam]$ python2 pam.py
26        Username: david
27        Password:
28        0 Success
29        ```
30
31        Inline examples:
32        ```
33        [david@Scott python-pam]$ python
34        Python 3.4.1 (default, May 19 2014, 17:23:49)
35        [GCC 4.9.0 20140507 (prerelease)] on linux
36        Type "help", "copyright", "credits" or "license" for more information.
37        >>> import pam
38        >>> p = pam.pam()
39        >>> p.authenticate('david', 'correctpassword')
40        True
41        >>> p.authenticate('david', 'badpassword')
42        False
43        >>> p.authenticate('david', 'correctpassword', service='login')
44        True
45        >>> p.authenticate('david', 'correctpassword', service='unknownservice')
46        False
47        >>> p.authenticate('david', 'correctpassword', service='login', resetcreds=True)
48        True
49        >>> p.authenticate('david', 'correctpassword', encoding='latin-1')
50        True
51        >>> print('{} {}'.format(p.code, p.reason))
52        0 Success
53        >>> p.authenticate('david', 'badpassword')
54        False
55        >>> print('{} {}'.format(p.code, p.reason))
56        7 Authentication failure
57        >>>
58        ```
59
60Platform: i686
61Platform: x86_64
62Classifier: Development Status :: 6 - Mature
63Classifier: Environment :: Plugins
64Classifier: Intended Audience :: Developers
65Classifier: Intended Audience :: Information Technology
66Classifier: Intended Audience :: System Administrators
67Classifier: License :: OSI Approved :: MIT License
68Classifier: Operating System :: POSIX
69Classifier: Operating System :: POSIX :: Linux
70Classifier: Programming Language :: Python
71Classifier: Programming Language :: Python :: 2
72Classifier: Programming Language :: Python :: 3
73Classifier: Topic :: Security
74Classifier: Topic :: System :: Systems Administration :: Authentication/Directory
75