Bug 84330
| Summary: | nsswitch fails when querying groups from winbindd (Samba component) | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | David Boynton <david.boynton> |
| Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 | CC: | 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: | |||
Can you please try rawhide glibc (like 2.3.1-46)? Installing rawhide glibc-2.3.1-46 has fixed the problem. Well, installing RawHide fixed the Samba problem, but broke several other programs, including rpm. :( Since the problem is fixed, I close the bug. |
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