Bug 1007381

Summary: proxy provider: id lookup shows "Memory buffer error" in domain log
Product: Red Hat Enterprise Linux 6 Reporter: Stephen Beal <sbeal>
Component: sssdAssignee: Jakub Hrozek <jhrozek>
Status: CLOSED ERRATA QA Contact: Kaushik Banerjee <kbanerje>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5CC: chhudson, dpal, grajaiya, jgalipea, kbanerje, lslebodn, mkosek, pbrezina, sbeal
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.11.5.1-1.el6 Doc Type: Bug Fix
Doc Text:
Cause: The proxy provider's group handling had a bug where the provider expected every user has at least one supplemetary group. Consequence: If a user who belongs to his private group only was requested, the request finished with an error. Fix: The proxy provider was fixed to handle users with no supplemetary groups fine. Result: Requesting users with no supplementary groups works now.
Story Points: ---
Clone Of: 895565 Environment:
Last Closed: 2014-10-14 04:46:42 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:
Bug Depends On: 895565    
Bug Blocks: 1061410    

Comment 2 Jakub Hrozek 2013-09-12 12:04:09 UTC
To test, configure a proxy provider that proxies to files and request a user that is only a member of his private group, not any supplementary group.

Comment 5 Jakub Hrozek 2013-09-19 08:34:41 UTC
This bug is targeting 6.6

Comment 6 Jakub Hrozek 2013-10-17 08:56:44 UTC
There is an upstream patch, moving to ASSIGNED

Comment 7 Jakub Hrozek 2013-10-31 11:21:28 UTC
Fixed upstream in 66d1f565dfb39325ab7daa264b5795b1f348756e

Comment 10 Kaushik Banerjee 2014-07-14 16:00:11 UTC
Verified with sssd version 1.11.6-1.el6

Output from beaker automation run:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: proxy_rfc2307_06: BZ1007381 initgroup returns memory buffer error
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

uid=1111111(User_CS1_Alias) gid=1111111(User_CS1_grp1_Alias) groups=1111111(User_CS1_grp1_Alias)
:: [   PASS   ] :: Running 'id User_CS1' (Expected 0, got 0)
:: [   PASS   ] :: File '/var/log/sssd/sssd_PROXY.log' should contain 'Assume the user is only member of its primary group' 
:: [   PASS   ] :: File '/var/log/sssd/sssd_PROXY.log' should not contain 'Memory buffer' 
proxy-rfc2307-06 result: PASS

Comment 11 errata-xmlrpc 2014-10-14 04:46:42 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/RHBA-2014-1375.html