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