I'm using redhat 7.4
I'm currently trying PAM, the current thing is to integrate PAM into a self written APP.
For that I'm using the example from PAM manual -
http://www.linux-pam.org/Linux-PAM-h...g-example.html
My pam file looks like this :
Quote:
auth required pam_unix.so
account required pam_unix.so
auth required pam_listfile.so onerr=fail item=user sense=allow file=/home/user/user.allow
account required pam_time.so
auth required pam_pwquality.so dcredit=-1 ucredit=-1 ocredit=-1 lcredit=0 minlen=8
|
I'm trying to verify if user account is valid, password correct, user is in user.allow, user logs in on specific time and trying to verify users password strength
after that will try to lock out users for 5 min if they typed their password wrong 3 times, something with :
auth required pam_faillock.so preauth audit deny=3 unlock_time=300
auth [default=die] pam_faillock.so authfail audit deny=3 unlock_time=300
about error messages, I get the following errors in /var/log/secure :
Dec 13 20:18:43 rhel a.out: PAM unable to resolve symbol: pam_sm_authenticate
Dec 13 20:18:43 rhel a.out: PAM unable to resolve symbol: pam_sm_setcred