Bug 84330

Summary: nsswitch fails when querying groups from winbindd (Samba component)
Product: [Retired] Red Hat Linux Reporter: David Boynton <david.boynton>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 8.0CC: fweimer, mitr
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-27 16:56:26 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:

Description David Boynton 2003-02-14 15:59:18 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
When querying domain groups for a user via nsswitch/winbindd the buffer passed
to libnss_winbind is too small (about 1k).
libnss_winbind returns NSS_TRYAGAIN and sets errno=ERANGE.
As far as I can tell, glibc never "trys again" it just fails, so all calls to
getgrgid fail for groups that have a lot of members.

I have only tested this using winbind, it is the only nss component I have
installed that will return large numbers of users/groups.

As a result, users cannot authenticate to my Samba server when it's set for
domain security.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Configure samba with "security = domain" and to use winbind
2.Add winbind to passwd and group lines of /etc/nsswitch.conf
3.Issue "groups <domain user>" at the command prompt.
    

Actual Results:  (long pause)
id: cannot find name for group ID 10001 (or some other number in winbind's range)


Expected Results:  List of domain groups the user belongs to

Additional info:

Works fine in RedHat 7.3

Comment 1 Jakub Jelinek 2003-02-18 13:09:31 UTC
Can you please try rawhide glibc (like 2.3.1-46)?

Comment 2 David Boynton 2003-02-18 18:12:57 UTC
Installing rawhide glibc-2.3.1-46 has fixed the problem.

Comment 3 David Boynton 2003-02-20 15:14:29 UTC
Well, installing RawHide fixed the Samba problem, but broke several other
programs, including rpm. :(


Comment 4 Ulrich Drepper 2004-09-27 16:56:26 UTC
Since the problem is fixed, I close the bug.