[PATCHES] samba-tool subcommand for adding subnets to sites

Douglas Bagnall douglas.bagnall at catalyst.net.nz
Fri Oct 23 03:50:17 UTC 2015


hi,

These patches allow you to add subnets to sites using samba-tool, with
something like:

   samba-tool sites subnet create 11.12.13.0/24 a_site_name

You can get rid of them again with:

   samba-tool sites subnet delete 11.12.13.0/24

or you can shift them from one site to another with:

   samba-tool sites subnet set-site 11.12.13.0/24 another_site_name

But it won't let you set the subnet to be any old rubbish. No. The SAM
ldb module will make sure it is a proper CIDR range (either IPv4 or
IPv6). That part of it is quite well tested.

These have been ferociously reviewed by Garming. Who wants to be next?

regards,
Douglas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subnet.patch
Type: text/x-diff
Size: 56930 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20151023/7e165c50/subnet.diff>


More information about the samba-technical mailing list