Bug 1459846 - krb5: properly handle 'password expired' information retured by the KDC during PKINIT/Smartcard authentication
krb5: properly handle 'password expired' information retured by the KDC durin...
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: SSSD Maintainers
Varun Mylaraiah
Depends On:
  Show dependency treegraph
Reported: 2017-06-08 06:45 EDT by Jakub Hrozek
Modified: 2017-08-01 05:06 EDT (History)
10 users (show)

See Also:
Fixed In Version: sssd-1.15.2-48.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2017-08-01 05:06:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jakub Hrozek 2017-06-08 06:45:12 EDT
This bug is created as a clone of upstream ticket:

Current during Smartcard/PKINIT authentication the PAM client gets confused by additional data which is send if the user password, which is not used for this authentication type, is expired.
Comment 2 Jakub Hrozek 2017-06-15 04:45:08 EDT
* master: 7e2ec7caa2d1c17e475fff78c5025496b8695509
Comment 6 Varun Mylaraiah 2017-06-22 02:15:23 EDT

[root@vm-idm-023 ~]# cat /etc/sssd/sssd.conf
krb5_use_enterprise_principal = True
cache_credentials = True
krb5_store_password_if_offline = True
ipa_domain = testrelm.test
id_provider = ipa
auth_provider = ipa
access_provider = ipa
ipa_hostname = vm-idm-023.testrelm.test
chpass_provider = ipa
ipa_server = _srv_, vm-idm-010.testrelm.test
ldap_tls_cacert = /etc/ipa/ca.crt
services = nss, sudo, pam, ssh

domains = testrelm.test
homedir_substring = /home








[root@vm-idm-023 ~]# systemctl restart sssd.service

[root@vm-idm-023 ~]# ssh -l tuser@testrelm.test localhost
Password expired. Change your password now.
Current Password: 
New password: 
Retype new password: 
Last login: Thu Jun 22 11:34:58 2017 from ::1
**  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **
                 This System is reserved by mvarun@redhat.com.

 To return this system early. You can run the command: return2beaker.sh
  Ensure you have your logs off the system before returning to Beaker

 To extend your reservation time. You can run the command:
 This is an interactive script. You will be prompted for how many
  hours you would like to extend the reservation.

 You should verify the watchdog was updated succesfully after
  you extend your reservation.

 For ssh, kvm, serial and power control operations please look here:

 For the default root password, see:

      Beaker Test information:

      Job Whiteboard: IPA :: RHEL 7.4 :: Only Master and Client :: quickinstall :: with 99 hrs reserved

      Recipe Whiteboard: CLIENT1
**  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **  **
Could not chdir to home directory /home/tuser: No such file or directory
Comment 7 errata-xmlrpc 2017-08-01 05:06:23 EDT
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.


Note You need to log in before you can comment on or make changes to this bug.