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 1226834

Summary: id lookup for non-root domain users doesn't return all groups on first attempt
Product: Red Hat Enterprise Linux 6 Reporter: Kaushik Banerjee <kbanerje>
Component: sssdAssignee: SSSD Maintainers <sssd-maint>
Status: CLOSED ERRATA QA Contact: Kaushik Banerjee <kbanerje>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.7CC: grajaiya, jgalipea, jhrozek, lslebodn, mkosek, mzidek, pbrezina, preichl, tlavigne
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.12.4-45.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 06:46:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
domain log after the first id lookup none

Description Kaushik Banerjee 2015-06-01 09:11:56 UTC
Created attachment 1033226 [details]
domain log after the first id lookup

Description of problem:
id lookup for non-root domain users doesn't return all groups on first attempt

Version-Release number of selected component (if applicable):
sssd-1.12.4-43.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. sssd is configured with ad backend
[domain/sssdad.com]
debug_level = 0xFFF0
id_provider = ad
use_fully_qualified_names = True
fallback_homedir = /home/%d/%u

2. Clear cache and restart sssd.

3. Perform a id lookup of non-root domain user
# id user1_dom2-968808
uid=295201867(user1_dom2-968808) gid=295201867(user1_dom2-968808) groups=295201867(user1_dom2-968808),295200513(domain users)

4. Repeat step 2
# id user1_dom2-968808
uid=295201867(user1_dom2-968808) gid=295201867(user1_dom2-968808) groups=295201867(user1_dom2-968808),295200513(domain users),295201868(group1_dom2-968808)


Actual results:
Initial id lookup doesn't return the group group1_dom2. But next lookup, the group is returned.

Domain log shows:
[sssd[be[sssdad.com]]] [sysdb_set_entry_attr] (0x0080): ldb_modify failed: [No such object](32)[ldb_wait: No such object (32)]
[sssd[be[sssdad.com]]] [set_initgroups_expire_attribute] (0x0020): Failed to set initgroups expire attribute
[sssd[be[sssdad.com]]] [acctinfo_callback] (0x0100): Request processed. Returned 3,2,Init group lookup failed


Expected results:


Additional info:

Comment 2 Jakub Hrozek 2015-06-01 09:32:40 UTC
Upstream ticket:
https://fedorahosted.org/sssd/ticket/2663

Comment 4 Jakub Hrozek 2015-06-01 13:51:56 UTC
Fixed upstream:
    master: d0b7e5fcfca7d0db9e3d19be7b51f34d03d3d720
    sssd-1-12: edc1538566e7034eea9b8d592206fbc236233dff

Comment 8 Kaushik Banerjee 2015-06-03 15:11:33 UTC
Verified in sssd-1.12.4-45.el6.x86_64.rpm

id lookup returns groups on first attempt now.

# id user1_dom2-7147
uid=295201918(user1_dom2-7147) gid=295201918(user1_dom2-7147) groups=295201918(user1_dom2-7147),295201919(group1_dom2-7147),295200513(domain users)

# id user1_dom3-7147.com
uid=1290801915(user1_dom3-7147.com) gid=1290801915(user1_dom3-7147.com) groups=1290801915(user1_dom3-7147.com),1290801918(group1_dom3-7147.com),1290800513(domain users.com)

Comment 10 errata-xmlrpc 2015-07-22 06:46:24 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-2015-1448.html