Bug 206260 - Samba fails to recognise valid users = @netgroup under LDAP and no YP
Samba fails to recognise valid users = @netgroup under LDAP and no YP
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: samba (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Simo Sorce
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2006-09-13 06:21 EDT by Jose Plans
Modified: 2010-10-22 02:01 EDT (History)
2 users (show)

See Also:
Fixed In Version: RHEA-2007-0698
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-15 11:14:42 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Patch fixing the problem, adding lib/username.c for rev < 13494. (1.56 KB, patch)
2006-09-13 06:21 EDT, Jose Plans
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2007:0698 normal SHIPPED_LIVE samba bug fix and enhancement update 2007-11-14 17:27:45 EST

  None (edit)
Description Jose Plans 2006-09-13 06:21:14 EDT
Description of problem:

Samba administrators cannot let members of a netgroup to be allowed to access
files on the share when the NIS domain is empty or not defined.

When using :
  valid users = @netgroup

Syslog will report :
       check_access: no hostnames in host allow/deny list.
       Allowed connection from  (xxx.xxx.xxx.xxx)
       Unable to get default yp domain
       Invalid username/password for testdrw [sa_gadav]
       error packet at smbd/reply.c(166) cmd=117 (SMBtconX) NT_STATUS_WRONG_PASSWORD

However if the administrator sets a user from that netgroup, then it's fine.
Applying patches from samba3 rev.17408 makes the problem disappear, Committed to
samba 23c.


Version-Release number of selected component (if applicable):
samba < 3.0.23c

How reproducible:

Additional info:
Volker removed from lib/username.c ( BOOL user_in_netgroup () ) in revision
13494, therefore the patch also applies lib/username.c as 3.0.10 is prior to
that change.
Patch attached.

Comment 1 Jose Plans 2006-09-13 06:21:18 EDT
Created attachment 136144 [details]
Patch fixing the problem, adding lib/username.c for rev < 13494.
Comment 2 RHEL Product and Program Management 2007-05-09 05:38:40 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 6 errata-xmlrpc 2007-11-15 11:14:42 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


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