Bug 131246

Summary: pam_krb5 - use_authtok in change password
Product: [Fedora] Fedora Reporter: Ludek Finstrle <ludek.finstrle>
Component: pam_krb5Assignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: low Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: 2.1.2-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-08-31 10:45:41 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
patch for use_authtok during changing password none

Description Ludek Finstrle 2004-08-30 10:27:01 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; cs-CZ; rv:1.7)

Description of problem:
I have same passwords in /etc/shadow and in krb5. I use this config:
password    requisite     /lib/security/$ISA/pam_cracklib.so retry=3 type=
password    required      /lib/security/$ISA/pam_unix.so nullok
use_authtok md5 shadow
password    required      /lib/security/$ISA/pam_krb5.so use_authtok

luf$ passwd
Changing password for user luf.
Changing password for luf
(current) UNIX password:
passwd: Authentication failure

pam_krb5 doesn't use typed password used in pam_unix. I see same
problem in older versions and in CVS too.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. config pam (see Description)
2. add user to /etc/passwd and /etc/shadow
3. add principal to kerberos
4. give same password to /etc/shadow and to kerberos
5. login as the user and type passwd

Actual Results:  see Description

Expected Results:  It may ask for new password.

Additional info:

I create patch which correct this problem.
$ patch -u password.c.orig password.c
Comment 1 Ludek Finstrle 2004-08-30 10:29:51 EDT
Created attachment 103248 [details]
patch for use_authtok during changing password
Comment 2 Nalin Dahyabhai 2004-08-31 10:45:41 EDT
Fixing in 2.1.2.  Thanks!