[PATCH] samba-tool sites subnet
Douglas Bagnall
douglas.bagnall at catalyst.net.nz
Fri Oct 16 02:16:02 UTC 2015
hello,
These patches allow you to add a subnet to a site using a command like
samba-tool sites subnet create 1.2.3.0/24 $site_name
but prevent you from adding syntactically invalid subnets. The subnets
follow the CIDR definition in RFC 4632 and MS-ADTS (v20150630)
6.1.1.2.2.2.1 "Subnet Object". I believe these are functionally
equivalent -- if not, I don't know which we violate. It also works
with IPv6.
There are also these subcommands:
samba-tool sites subnet set-site 1.2.3.0/24 $site2
samba-tool sites subnet delete 1.2.3.0/24
which would shift the subnet from one site object to another, then
delete it.
Along the way we make minor improvements to the existing samba-tool
sites sub-command and its tests.
cheers,
Douglas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-subnets.patch
Type: text/x-diff
Size: 52287 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20151016/a83b2faf/add-subnets.diff>
More information about the samba-technical
mailing list