Bug 877126

Summary: subdomains code does not save the proper user/group name
Product: Red Hat Enterprise Linux 6 Reporter: Dmitri Pal <dpal>
Component: sssdAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED ERRATA QA Contact: Kaushik Banerjee <kbanerje>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 6.4CC: grajaiya, jgalipea, nsoman, pbrezina, sgoveas
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.9.2-20.el6 Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 09:40:18 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:    
Bug Blocks: 881827    

Description Dmitri Pal 2012-11-15 18:42:32 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/sssd/ticket/1629


example group with trusted user in it returned by sssd now:

{{{
    [root@ipa1 ~]# getent passwd AD2012\\Administrator
    administrator.org:*:1707400500:1707400500::/home/ad2012.ssimo.org/administrator:
    [root@ipa1 ~]# getent group AD2012\\Administrator
    administrator.org:*:1707400500:
    [root@ipa1 ~]# getent group ad_users
    ad_users:*:1111800003:administrator
}}}

as you can see the name is not fully qualified.

names from groups comes from the memberuid attribute which is populated by the memberof plugin using the 'name' attribute of the object that is member of the group.

the subdomains code is using just the short username for the name attribute.

We need to use the fully qualified name instead.

Comment 2 Steeve Goveas 2013-02-01 09:21:40 UTC
[root@ibm-x3500m4-01 ~]# kinit
Password for admin: 

[root@ibm-x3500m4-01 ~]# ipa trust-find
---------------
1 trust matched
---------------
  Realm name: adlab.qe
  Domain NetBIOS name: ADLAB
  Domain Security Identifier: S-1-5-21-3655990580-1375374850-1633065477
  Trust type: Active Directory domain
----------------------------
Number of entries returned 1
----------------------------

[root@ibm-x3500m4-01 ~]# getent passwd ADLAB\\adtestuser1
adtestuser1:*:1979001178:1979001178:adtest user1:/home/adlab.qe/adtestuser1:

[root@ibm-x3500m4-01 ~]# getent group ADLAB\\adgroup1
adgroup1:*:1979001150:tuser1,tuser2,adtestuser1

[root@ibm-x3500m4-01 ~]# getent group ad_users
ad_users:*:520800004:steeve,adtestuser2,tuser1,fuser,tuser2,tuser3,nuser2,adtestuser1,nuser1

Verified in version
sssd-client-1.9.2-82.el6.x86_64
sssd-1.9.2-82.el6.x86_64
ipa-server-3.0.0-25.el6.x86_64

Comment 3 errata-xmlrpc 2013-02-21 09:40:18 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-0508.html