Red Hat Bugzilla – Bug 811168
fix pam_get_authtok_verify() to respect the authtok_type= option
Last modified: 2013-02-21 05:36:51 EST
Description of problem: When using authtok_type parameter for pam_cracklib module the given string isn't shown at retype prompt: # passwd pamtest6209 Changing password for user pamtest6209. New PAMTEST password: Retype new password: passwd: all authentication tokens updated successfully. According to the man page: authtok_type=XXX The default action is for the module to use the following prompts when requesting passwords: "New UNIX password: " and "Retype UNIX password: ". The example word UNIX can be replaced with this option, by default it is empty. Version-Release number of selected component (if applicable): pam-1.1.1-10.el6_2.1 How reproducible: 100% Steps to Reproduce: 1. Set authtok_type for pam: password required pam_cracklib.so authtok_type=PAMTEST 2. useradd test 3. passwd test Actual results: functionality <-> man page inconsistency Expected results: Man page correct, or string shown also at retype prompt Additional info: Not a regression
This depends on the following modules in the PAM stack. If they used the pam_get_authtok() function, it would work. Unfortunately pam_unix doesn't. Basically this is request to modify pam_unix to use pam_get_authtok() function to obtain the password.
I was wrong in comment #1 - this is actually bug in pam_get_authtok_verify().
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2013-0521.html