Bug 867676

Summary: extdom plugin does not handle Posix UID and GID request
Product: Red Hat Enterprise Linux 6 Reporter: Dmitri Pal <dpal>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 6.4CC: mkosek, spoore
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-3.0.0-6.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 09:28:31 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:

Description Dmitri Pal 2012-10-18 03:46:51 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/3166

There is some disconnect between sssd and the IPA extdom plugin about how maps a UID or a GID to a SID. Since we try to avoid explicit knowledge of the SID in the client the extdom plugin should map the IDs and the client only sends request with UID and GID. Currently those request are not handled properly.

Comment 1 Martin Kosek 2012-10-18 08:59:04 UTC
Fixed upstream:
master: https://fedorahosted.org/freeipa/changeset/89e315d639e972608df11ae052029aaaf0eb1083
ipa-3-0: https://fedorahosted.org/freeipa/changeset/2b33010a9c5eb734c09582c29c8724ce6eb81d34


Steps to reproduce from Sumit Bose:

1) stop sssd
2) delete all ldb and memory mapped cache files, e.g. 'rm -f /var/lib/sss/mc/* /var/lib/sss/db/*'
3) start sssd
4) call 'getent passwd UID_of_a_user_from_a_trusted_domain'

Comment 3 Scott Poore 2012-11-07 18:35:07 UTC
Verified.

Version ::

ipa-server-3.0.0-7.el6.x86_64
sssd-1.9.2-7.el6.x86_64

Manual Test Results ::

[root@rhel6-1 yum.local.d]# service sssd stop
Stopping sssd:                                             [  OK  ]

[root@rhel6-1 yum.local.d]# rm -f /var/lib/sss/db/* /var/lib/sss/mc/*
rm: cannot remove `/var/lib/sss/db/failure-20121107-1-cache-dbs': Is a directory

[root@rhel6-1 yum.local.d]# service sssd start
Starting sssd:                                             [  OK  ]

[root@rhel6-1 yum.local.d]# getent passwd 1232801136
adtestuser1:*:1232801136:1232801136::/home/adtestdom.com/adtestuser1:

Comment 6 errata-xmlrpc 2013-02-21 09:28:31 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.

http://rhn.redhat.com/errata/RHSA-2013-0528.html