Bug 2835 - hosts allow entries without trailing periods
hosts allow entries without trailing periods
Status: RESOLVED LATER
Product: Samba 3.0
Classification: Unclassified
Component: Config Files
3.0.10
All Linux
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
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 2005-09-29 05:02:17 UTC
Markign as LATER.  Testparm currently makes no evaluation of the parameter
values.  Only the parameter names.