Bug 67896

Summary: smb.conf's "hosts allow" should allow /yy for a netmask
Product: [Retired] Red Hat Linux Reporter: Octavio Alvarez <alvarezp>
Component: sambaAssignee: Trond Eivind Glomsrxd <teg>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-07-03 22:21:58 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:

Description Octavio Alvarez 2002-07-03 22:21:54 UTC
Description of Problem:
samba should recognize /yy parameters as network mask.

Version-Release number of selected component (if applicable):
samba-2.2.3a-6

How Reproducible:
Change a working smb.conf "hosts allow" directive to the xxx.xxx.xxx.xxx/yy 
format, and run smbclient -L BIGSERVER (locally, from BIGSERVER).

Works ok with: "hosts allow = 192.168.0.0/255.255.255.0 127.0.0.0/255.0.0.0"
... but not with: "hosts allow = 192.168.0.0/24 127.0.0.0/8"

I mark this as an enhancement because, although "man smb.conf" says that it 
recognizes ip/mask pairs, the example is written as "150.203.15.0/255.255.255.0"

Depending on the smb.conf configuration, you may get a "Not listening for 
calling name" or simply a "Connection failed".

Comment 1 Trond Eivind Glomsrxd 2002-07-03 22:35:26 UTC
I suggest you make that suggestion on a samba mailing list - one such address is
samba.org