PKG-INFO 2.5 KB

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