Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1506142

Summary: SSSD can crash due to ABI changes in libldb >= 1.2.0 (1.1.30) [rhel-7.4.z]
Product: Red Hat Enterprise Linux 7 Reporter: Oneata Mircea Teodor <toneata>
Component: sssdAssignee: SSSD Maintainers <sssd-maint>
Status: CLOSED ERRATA QA Contact: Rishabh Dave <ridave>
Severity: high Docs Contact:
Priority: high    
Version: 7.4CC: fhanzelk, fidencio, grajaiya, jhrozek, lslebodn, mkosek, mpitt, mzidek, pbrezina, sdodson, sgoveas, sssd-maint, tscherf
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.15.2-50.el7_4.7 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: 1502713 Environment:
Last Closed: 2017-12-05 10:51:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1502713    
Bug Blocks:    

Description Oneata Mircea Teodor 2017-10-25 09:01:36 UTC
This bug has been copied from bug #1502713 and has been proposed to be backported to 7.4 z-stream (EUS).

Comment 3 Rishabh Dave 2017-11-14 17:12:15 UTC
Verified this bug on SSSD version : sssd-1.15.2-50.el7_4.7.x86_64
 
Steps followed during verification:
 
1. Get RHEL 7.4 machine and install sssd and samba. Ensure libldb version is < 1.2
 
        [root@client ~]# yum install -y sssd sssd-tools samba
        [root@client ~]# rpm -q sssd sssd-tools samba libldb
        sssd-1.15.2-50.el7.x86_64
        sssd-tools-1.15.2-50.el7.x86_64
        samba-4.6.2-8.el7.x86_64
        libldb-1.1.29-1.el7.x86_64
     
2. Configure sssd as follows:
            [root@client ~]# cat /etc/sssd/sssd.conf
            [sssd]
            config_file_version = 2
            services = nss, pam
            domains = LOCAL
     
            [domain/LOCAL]
            id_provider = local
            debug_level = 9
     
3. Start sssd service and run a user lookup.
            [root@client ~]# systemclt restart sssd
            [root@client ~]# sss_useradd localtestuser1
            [root@client ~]# id localtestuser1
            uid=1000(test) gid=1000(test) groups=1000(test)
     
4. In order to reproduce the bug, update samba and libldb to latest version provided by rhel-75 repo.
            [root@client ~]# cat /etc/yum.repos.d/rhel-75.repo
            [rhel-75]
            name=rhel-75
            baseurl=http://download.eng.pnq.redhat.com/pub/rhel/nightly/RHEL-7.5-20171108.n.0/compose/Server/x86_64/os/
            enabled=1
            gpgcheck=0
            skip_if_unavailable=1
     
            [root@server ~]# rpm -q sssd sssd-tools samba libldb
            sssd-1.15.2-50.el7.x86_64
            sssd-tools-1.15.2-50.el7.x86_64
            samba-4.7.1-1.el7.x86_64
            libldb-1.2.2-1.el7.x86_64
     
5. Restart sssd and the service should crash with segmentation fault.
     
            [root@client ~]# systemctl restart sssd
            Job for sssd.service failed because a fatal signal was delivered to the control process. See "systemctl status sssd.service" and "journalctl -xe" for details.
            [root@client ~]# /usr/sbin/sssd -i
            Segmentation fault
 
6. Upgrade SSSD to the latest z-stream version and restart sssd service.
 
        [root@client ~]# cat /etc/yum.repos.d/rhel-74z.repo
        [rhel-74z]
        name=rhel-74z
        baseurl=http://download-node-02.eng.bos.redhat.com/devel/task-repos/official/sssd/1.15.2/50.el7_4.7/x86_64/
        enabled=1
        gpgcheck=0
        skip_if_unavailable=1
 
        [root@client ~]# yum update -y samba sssd
 
        [root@client ~]# rpm -q sssd sssd-tools samba libldb
        sssd-1.15.2-50.el7_4.7.x86_64
        sssd-tools-1.15.2-50.el7_4.7.x86_64
        samba-4.6.2-8.el7.x86_64
        libldb-1.1.29-1.el7.x86_64
 
        [root@client ~]# systemclt restart sssd
 
7. Lookup a user and sssd should work without crash.
 
        [root@client ~]# id localtestuser1
        uid=1000(test) gid=1000(test) groups=1000(test)

Comment 8 errata-xmlrpc 2017-12-05 10:51:36 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-2017:3379