Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 84330 - nsswitch fails when querying groups from winbindd (Samba component)
nsswitch fails when querying groups from winbindd (Samba component)
Product: Red Hat Linux
Classification: Retired
Component: glibc (Show other bugs)
i686 Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2003-02-14 10:59 EST by David Boynton
Modified: 2016-11-24 09:55 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-09-27 12:56:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Boynton 2003-02-14 10:59:18 EST
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:

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 08:09:31 EST
Can you please try rawhide glibc (like 2.3.1-46)?
Comment 2 David Boynton 2003-02-18 13:12:57 EST
Installing rawhide glibc-2.3.1-46 has fixed the problem.
Comment 3 David Boynton 2003-02-20 10:14:29 EST
Well, installing RawHide fixed the Samba problem, but broke several other
programs, including rpm. :(
Comment 4 Ulrich Drepper 2004-09-27 12:56:26 EDT
Since the problem is fixed, I close the bug.

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