Hide Forgot
Description of problem: If a SID should be resolved to a user or group name which is not in the cache the request fails. This breaks e.g. some features on the IPA server. Version-Release number of selected component (if applicable): sssd-1.12.2-45.el7 How reproducible: To reproduce call python -c "import pysss_nss_idmap; print pysss_nss_idmap.getnamebysid('S-1-5-21-3456664713-2053453454-4165325232-500')" on a IPA client or server with a trust to AD where the SID (S-1-5-....) exists in AD but is not in the cache of SSSD, e.g. start SSSD with an empty cache. Actual results: Nothing is returned Expected results: The nane of the user or group related to the given SID should be returned. Additional info: Patch available upstream
Upstream ticket: https://fedorahosted.org/sssd/ticket/2566
Fixed upstream: master: d6ddc35574ba897cf9b5de3350086d9d8604f06f sssd-1-12: 97c0a591a1e09be520a6faaf51a4ba72d76f0c24
Verified in version [root@vm-idm-019 ~]# rpm -q sssd sssd-1.12.2-52.el7.x86_64 On Server * To get the aduser sid [root@vm-idm-019 ~]# python -c "import pysss_nss_idmap; print pysss_nss_idmap.getsidbyname('aduser1')" {'aduser1': {'type': 3, 'sid': u'S-1-5-21-1910160501-511572375-3625658879-1313'}} [root@vm-idm-019 ~]# service sssd stop; rm -rf /var/lib/sss/{db,mc}/*; service sssd start [root@vm-idm-019 ~]# python -c "import pysss_nss_idmap; print pysss_nss_idmap.getnamebysid('S-1-5-21-1910160501-511572375-3625658879-1313')" {'S-1-5-21-1910160501-511572375-3625658879-1313': {'type': 3, 'name': u'aduser1'}} On Client [root@bumblebee ~]# service sssd stop; rm -rf /var/lib/sss/{db,mc}/*; service sssd start [root@bumblebee ~]# python -c "import pysss_nss_idmap; print pysss_nss_idmap.getnamebysid('S-1-5-21-1910160501-511572375-3625658879-1313')" {'S-1-5-21-1910160501-511572375-3625658879-1313': {'type': 3, 'name': u'aduser1'}}
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://rhn.redhat.com/errata/RHBA-2015-0441.html