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 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