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 1213940 - Overridde with --login fails trusted adusers group membership resolution
Summary: Overridde with --login fails trusted adusers group membership resolution
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.7
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: rc
: ---
Assignee: Sumit Bose
QA Contact: Namita Soman
Tomas Capek
URL:
Whiteboard:
Depends On:
Blocks: 1214673 1214718
TreeView+ depends on / blocked
 
Reported: 2015-04-21 15:09 UTC by Steeve Goveas
Modified: 2020-05-02 18:01 UTC (History)
12 users (show)

Fixed In Version: sssd-1.12.4-35.el6
Doc Type: Known Issue
Doc Text:
User login override fails trusted *adusers* group membership resolution If a user login is overriden by using the *--login* command-line parameter, then the group membership for this user will be incorrect until the user's first login.
Clone Of:
: 1214673 1214718 (view as bug list)
Environment:
Last Closed: 2016-05-10 20:22:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 3673 0 None closed Overridde with --login fails trusted adusers group membership resolution 2020-05-24 23:47:50 UTC
Red Hat Product Errata RHBA-2016:0782 0 normal SHIPPED_LIVE sssd bug fix and enhancement update 2016-05-10 22:36:00 UTC

Description Steeve Goveas 2015-04-21 15:09:00 UTC
Description of problem:
Override for trusted AD users with --login causes failure for group membership resolution prioir login

Version-Release number of selected component (if applicable):
[root@vm-idm-018 ~]# rpm -q sssd ipa-client
sssd-1.12.4-31.el6.x86_64
ipa-client-3.0.0-46.el6.x86_64

How reproducible:
always

Steps to Reproduce:

* On Server no override for aduser1.qe

[root@sideswipe ~]# ipa idoverrideuser-find 'default trust view' aduser1.qe
---------------------------
0 User ID overrides matched
---------------------------
----------------------------
Number of entries returned 0
----------------------------
[root@sideswipe ~]# service sssd stop ; rm -f /var/lib/sss/{db,mc}/* ; service sssd start
Redirecting to /bin/systemctl stop  sssd.service
Redirecting to /bin/systemctl start  sssd.service

* On Client group resolve prior to login works

[root@vm-idm-018 ~]# service sssd stop; rm -rf /var/lib/sss/{db,mc}/*; service sssd start
Stopping sssd: [  OK  ]
Starting sssd: [  OK  ]
[root@vm-idm-018 ~]# id aduser1.qe
uid=839001130(aduser1.qe) gid=839001130(aduser1.qe) groups=839001130(aduser1.qe),1148402424(adunigroup1),839001172(adgroup2.qe),839001120(adgroup1.qe),839000513(domain users.qe)


* On Server override added for aduser1.qe with login name puser1

[root@sideswipe ~]# ipa idoverrideuser-add 'default trust view' aduser1.qe --login puser1 -----------------------------------------------
Added User ID override "aduser1.qe"
-----------------------------------------------
  Anchor to override: aduser1.qe
  User login: puser1
[root@sideswipe ~]# service sssd stop ; rm -f /var/lib/sss/{db,mc}/* ; service sssd start
Redirecting to /bin/systemctl stop  sssd.service
Redirecting to /bin/systemctl start  sssd.service

* On Client group resolve fails prior to login. Group membership are resolved after user does login

[root@vm-idm-018 ~]# service sssd stop; rm -rf /var/lib/sss/{db,mc}/*; service sssd start
Stopping sssd: [  OK  ]
Starting sssd: [  OK  ]

[root@vm-idm-018 ~]# id aduser1.qe
uid=839001130(puser1.qe) gid=839001130(puser1.qe) groups=839001130(puser1.qe),839000513(domain users.qe)

    * Restart sssd  on both server and client

[root@vm-idm-018 ~]# id puser1.qe
id: puser1.qe: No such user        # bz1213822

[root@vm-idm-018 ~]# id puser1.qe
uid=839001130(puser1.qe) gid=839001130(puser1.qe) groups=839001130(puser1.qe),839000513(domain users.qe)

    * Login as puser1 and then run id

[root@vm-idm-018 ~]# ssh -l puser1.qe `hostname` echo 'login successful'
puser1.qe.test's password: 
login successful

[root@vm-idm-018 ~]# id puser1.qe
uid=839001130(puser1.qe) gid=839001130(puser1.qe) groups=839001130(puser1.qe),839000513(domain users.qe),839001120(adgroup1.qe),1148402424(adunigroup1),839001172(adgroup2.qe)

Comment 2 Jakub Hrozek 2015-04-24 14:24:10 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/2632

Comment 3 Jakub Hrozek 2015-04-29 09:54:01 UTC
* master: 3453e4734d2f7738034af61edb7d33c0c7095d8a
* sssd-1-12: 85287a6b897d818d279171a83aa3c8a0de66f13b

Comment 9 Sudhir Menon 2016-02-17 09:04:04 UTC
Verified using RHEL7.2 IPA Server and RHEL6.8 IPA client

Observation:
On Client group resolve works prior to login. 

===IPA Server===
ipa-server-4.2.0-15.el7_2.3.x86_64
sssd-1.13.0-40.el7_2.1.x86_64

[root@host2 ~]# ipa idoverrideuser-mod 'default trust view'  test1.qe --login=puser1
-----------------------------------------------
Modified an User ID override "test1.qe"
-----------------------------------------------
  Anchor to override: test1.qe
  User login: puser1

[root@host2 ~]# service sssd stop ; rm -f /var/lib/sss/{db,mc}/* ; service sssd start
Redirecting to /bin/systemctl stop  sssd.service
Redirecting to /bin/systemctl start  sssd.service

[root@host2 ~]# id test1.qe
uid=10000(puser1.qe) gid=10001(agroup1) groups=10001(agroup1),10000(domain users)

===IPA Client===
ipa-client-3.0.0-50.el6.x86_64
sssd-1.13.3-15.el6.x86_64

[root@r68client ~]# id test2.qe
uid=10001(test2.qe) gid=10001(agroup1) groups=10001(agroup1),10000(domain users)

[root@r68client ~]# ssh -l puser1.qe `hostname` echo 'login successful'
puser1.qe.in's password: 
Could not chdir to home directory /home/chd.pne.qe/test1: No such file or directory
login successful

[root@r68client ~]# id test1.qe
uid=10000(puser1.qe) gid=10001(agroup1) groups=10001(agroup1),10000(domain users)

Comment 11 errata-xmlrpc 2016-05-10 20:22:15 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://rhn.redhat.com/errata/RHBA-2016-0782.html


Note You need to log in before you can comment on or make changes to this bug.