pam_chauthtok functions returns PAM_SUCCESS instead of error in RHEL5
Issue
When calling pam_chauthtok, from C++ code, in situations where a "BAD PASSWORD" error would be expected, "PAM_SUCCESS" is returned instead. Testing from the command line returns expected results.
The /etc/pam.d/check_password used is shown below:
auth required pam_unix.so nullok try_first_pass
password required pam_passwdqc.so min=8,8,8,8,8 max=10 passphrase=0 match=0 similar=deny random=0 enforce=users retry=3
password sufficient pam_unix.so nullok use_authtok md5 shadow remember=5
Environment
- Red Hat Enterprise Linux 5.9
pam-0.99.6.2-12.el5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
