FirefighterBlu3 / python-pam

Python pam module supporting py3 (py2 support still exists but is deprecated)
MIT License
110 stars 24 forks source link

Verify account availability after initial authentication #16

Closed okin closed 4 years ago

okin commented 5 years ago

An user account might be able to authenticate with the given credentials but not being valid (i.e. due to time restraints or expired accounts). This check is usually performed by calling _pam_acctmgmt.

This PR adds this behaviour. Doing so has been suggested in #8 and #12.

Ebenholt commented 5 years ago

I havent tested the code but based on the diff, this looks like a good addition

FirefighterBlu3 commented 4 years ago

Thank you!