Bug 2835 - hosts allow entries without trailing periods
Summary: hosts allow entries without trailing periods
Status: RESOLVED LATER
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Config Files (show other bugs)
Version: 3.0.10
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-28 14:15 UTC by David Johnston
Modified: 2005-09-29 05:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Johnston 2005-06-28 14:15:18 UTC
In smb.conf, a line like the following causes unexpected behavior:
  hosts allow = 192.168.0, 127.

Changing this to 
  hosts allow = 192.168.0., 127.
works.

Without the trailing period, Samba evidently discards it.  This leads Windows
clients to report that access to the domain was denied.  smbclient reports
NT_ACCESS_ACCESS_DENIED.

However, testparm doesn't flag it as an error.  If an argument to hosts allow is
an incomplete IP address without a trailing period, can testparm be made to flag
it as an error?
Comment 1 Gerald (Jerry) Carter (dead mail address) 2005-09-29 05:02:17 UTC
Markign as LATER.  Testparm currently makes no evaluation of the parameter
values.  Only the parameter names.