RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1602781 - Offline logins and/or id_provider=local logins fail after upgrade to 7.6
Summary: Offline logins and/or id_provider=local logins fail after upgrade to 7.6
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Zidek
QA Contact: sssd-qe
Lucie Vařáková
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-18 13:29 UTC by Madhuri
Modified: 2020-05-02 18:59 UTC (History)
10 users (show)

Fixed In Version: sssd-1.16.2-11.el7
Doc Type: Known Issue
Doc Text:
Cause: There was an uninteded change in the way passwords are stored in sssd that resulted in the first three characters of the hash (which do not contain the hash itself, but a special "magic" string "$6$") to not be stored. Consequence: If the sssd was upgraded while disconnected from the authentication source, offline logins would not work, because sssd would generate a new hash from the user provided password which wouldn't have the magic and compare with the stored hash that starts with the magic string. Workaround (if any): none for the local provider. For regular logins, logging in while connected to the online source would refresh the cached password, but the first login after an upgrade to the broken version must be online, not offline. Note that if you do this, you must also log in online after the first upgrade to the fixed version as well to get rid of the bad hash. Result:
Clone Of:
Environment:
Last Closed: 2018-10-30 10:42:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 4789 0 None None None 2020-05-02 18:59:11 UTC
Red Hat Product Errata RHSA-2018:3158 0 None None None 2018-10-30 10:43:33 UTC

Description Madhuri 2018-07-18 13:29:37 UTC
Description of problem:
Local users failed to login with same password after upgrading to RHEL7.6

Version-Release number of selected component (if applicable):
sssd-1.16.2-7.el7.x86_64

How reproducible:
Always

Steps to Reproduce:

1. Setup sssd client on RHEL7.5
# rpm -qa sssd
sssd-1.16.0-19.el7.x86_64
 
#cat /etc/sssd/sssd.conf
[sssd]
services = nss, pam
config_file_version = 2
domains = local
debug_level = 9

[domain/local]
id_provider = local
debug_level = 9

[nss]
debug_level = 9

[pam]
debug_level = 9


2. Add local user and group
# sss_groupadd -g 1010 localtestgroup1
# sss_useradd -G localtestgroup1 localtestuser1

3. Change the user’s password
# passwd localtestuser1

4. User lookup and user authentication worked as expected.

5. Add latest repo link to upgrade the sssd to sssd-1.16.2-7.el7.

6. Upgrade the sssd
From yum.log
# cat /var/log/yum.log
Jul 18 17:54:44 Updated: libsss_idmap-1.16.2-7.el7.x86_64
Jul 18 17:54:44 Updated: python-sssdconfig-1.16.2-7.el7.noarch
Jul 18 17:54:44 Updated: libsss_nss_idmap-1.16.2-7.el7.x86_64
Jul 18 17:54:44 Updated: sssd-client-1.16.2-7.el7.x86_64
Jul 18 17:54:44 Updated: libsss_autofs-1.16.2-7.el7.x86_64
Jul 18 17:54:44 Updated: libipa_hbac-1.16.2-7.el7.x86_64
Jul 18 17:54:44 Updated: libsss_sudo-1.16.2-7.el7.x86_64
Jul 18 17:54:45 Updated: sssd-common-1.16.2-7.el7.x86_64
Jul 18 17:54:45 Updated: sssd-krb5-common-1.16.2-7.el7.x86_64
Jul 18 17:54:45 Updated: sssd-common-pac-1.16.2-7.el7.x86_64
Jul 18 17:54:45 Updated: sssd-ipa-1.16.2-7.el7.x86_64
Jul 18 17:54:45 Updated: sssd-ad-1.16.2-7.el7.x86_64
Jul 18 17:54:45 Updated: sssd-krb5-1.16.2-7.el7.x86_64
Jul 18 17:54:45 Updated: sssd-ldap-1.16.2-7.el7.x86_64
Jul 18 17:54:45 Updated: sssd-dbus-1.16.2-7.el7.x86_64
Jul 18 17:54:45 Updated: libsss_simpleifp-1.16.2-7.el7.x86_64
Jul 18 17:54:45 Updated: sssd-proxy-1.16.2-7.el7.x86_64
Jul 18 17:54:45 Updated: python-sss-1.16.2-7.el7.x86_64
Jul 18 17:54:46 Updated: sssd-tools-1.16.2-7.el7.x86_64
Jul 18 17:54:46 Updated: sssd-1.16.2-7.el7.x86_64

7. Check user lookup and authentication. 

Actual results:
Authentication failed for user localtestuser1 after upgrading to RHLE 7.6. with same password.

Expected results:
Authentication should pass with same password.

Additional info:

Comment 3 Jakub Hrozek 2018-07-27 09:51:01 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/3791

Comment 4 Michal Zidek 2018-07-27 10:55:13 UTC
Hi Madhuri,

can you try this scratch build of SSSD to see if it fixes the regression test?
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=17382595

Thanks,
Michal

Comment 5 Madhuri 2018-07-30 08:53:47 UTC
Hello Michal,

I tried above scratch build of SSSD and got successful run with beaker, so above build fix the failing regression test.
successful beaker link: https://beaker.engineering.redhat.com/jobs/2651454


Thanks,
Madhuri.

Comment 6 Jakub Hrozek 2018-07-30 09:37:47 UTC
Thank you for testing. Can we get a qa_ack in order to fix the bug in RHEL?

Comment 7 Jakub Hrozek 2018-07-30 20:26:01 UTC
* master: bb20d5160faed5e0076887ac4a83e550be15a8b2

Comment 9 Madhuri 2018-08-08 07:10:56 UTC
verified with
sssd-1.16.2-11.el7

Verificatios steps:
1. Configure sssd, add local user and change the user's password
=====================================
INFO - RUN sss_groupadd -g 1010 localtestgroup1
DEBUG - RUN sss_groupadd -g 1010 localtestgroup1
DEBUG - Exit code: 0
INFO - RUN sss_useradd -G localtestgroup1 localtestuser1
DEBUG - Exit code: 0
INFO - RUN passwd --stdin localtestuser1
DEBUG - RUN passwd --stdin localtestuser1
DEBUG - Changing password for user localtestuser1.
DEBUG - passwd: all authentication tokens updated successfully.
DEBUG - Exit code: 0

2. Update sssd
========================================
RUN yum -y update sssd

DEBUG -   Updating   : libsss_idmap-1.16.2-11.el7.x86_64                           1/56
DEBUG -   Updating   : libsss_nss_idmap-1.16.2-11.el7.x86_64                       2/56
DEBUG -   Updating   : libipa_hbac-1.16.2-11.el7.x86_64                            3/56
DEBUG -   Updating   : python-sssdconfig-1.16.2-11.el7.noarch                      4/56
DEBUG -   Updating   : sssd-client-1.16.2-11.el7.x86_64                            5/56
DEBUG -   Updating   : libsss_autofs-1.16.2-11.el7.x86_64                          6/56
DEBUG -   Updating   : libsss_sudo-1.16.2-11.el7.x86_64                            7/56
DEBUG -   Updating   : sssd-common-1.16.2-11.el7.x86_64                            8/56
DEBUG -   Updating   : sssd-krb5-common-1.16.2-11.el7.x86_64                       9/56
DEBUG -   Updating   : sssd-common-pac-1.16.2-11.el7.x86_64                       10/56
DEBUG -   Updating   : sssd-ad-1.16.2-11.el7.x86_64                               11/56
DEBUG -   Updating   : sssd-ipa-1.16.2-11.el7.x86_64                              12/56
DEBUG -   Updating   : sssd-ldap-1.16.2-11.el7.x86_64                             13/56
DEBUG -   Updating   : sssd-krb5-1.16.2-11.el7.x86_64                             14/56
DEBUG -   Updating   : python-sss-1.16.2-11.el7.x86_64                            15/56
DEBUG -   Updating   : sssd-proxy-1.16.2-11.el7.x86_64                            16/56
DEBUG -   Updating   : sssd-dbus-1.16.2-11.el7.x86_64                             17/56
DEBUG -   Updating   : libsss_simpleifp-1.16.2-11.el7.x86_64                      18/56
DEBUG -   Updating   : sssd-tools-1.16.2-11.el7.x86_64                            19/56
DEBUG -   Updating   : libsss_simpleifp-devel-1.16.2-11.el7.x86_64                20/56
DEBUG -   Updating   : sssd-1.16.2-11.el7.x86_64                                  21/56

DEBUG - Dependency Updated:
DEBUG -   libipa_hbac.x86_64 0:1.16.2-11.el7
DEBUG -   sssd-ad.x86_64 0:1.16.2-11.el7
DEBUG -   sssd-client.x86_64 0:1.16.2-11.el7
DEBUG -   sssd-common.x86_64 0:1.16.2-11.el7
DEBUG -   sssd-common-pac.x86_64 0:1.16.2-11.el7
DEBUG -   sssd-dbus.x86_64 0:1.16.2-11.el7
DEBUG -   sssd-ipa.x86_64 0:1.16.2-11.el7

3. Check sssd version
====================================
DEBUG - RUN rpm -q sssd
DEBUG - sssd-1.16.2-11.el7.x86_64
DEBUG - Exit code: 0

4. Check user lookup and authentication with same password
====================================
INFO - RUN id localtestuser1
DEBUG - RUN id localtestuser1
DEBUG - uid=1011(localtestuser1) gid=1011(localtestuser1) groups=1011(localtestuser1),1010(localtestgroup1)
DEBUG - Exit code: 0

INFO - WRITE /tmp/qe_pytest_expect_fileGJA4DTU11R
INFO - RUN ['expect', '-f', '/tmp/qe_pytest_expect_fileGJA4DTU11R']
DEBUG - RUN ['expect', '-f', '/tmp/qe_pytest_expect_fileGJA4DTU11R']
DEBUG - spawn ssh -o NumberOfPasswordPrompts=1 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -l localtestuser1 localhost whoami
DEBUG - Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
DEBUG - localtestuser1@localhost's password: 
DEBUG - Could not chdir to home directory /home/localtestuser1: Permission denied
DEBUG - bash: /home/localtestuser1/.bashrc: Permission denied
DEBUG - localtestuser1
DEBUG - Exit code: 3

Comment 14 errata-xmlrpc 2018-10-30 10:42:59 UTC
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.

https://access.redhat.com/errata/RHSA-2018:3158


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