[PATCH] Update masked_match in source4 to support IPv6 addresses (resend)

Heath Kehoe heath at digitalartefacts.com
Fri Nov 11 23:41:26 UTC 2016

On 11/11/16 15:39, Jeremy Allison wrote:

> Slightly better version of the patch (also attached
> to the bug report above). Splits out the first part
> into several micro-patches so I'm not moving code
> and re-formatting that the same time (although the
> result is the same). Passing make test here.
> Let me know if this fixes it for you ?
> Cheers,
> Jeremy.

I've built 4.5.1 and 4.3.11 using your original patch. The site matching 
is working properly; however there are DEBUG 0 messages "Denied 
connection from" appearing whenever the site is looked up, since 
samdb_client_site_name() iterates over all defined subnets until it 
finds a match. You should probably remove the DEBUGs from allow_access() 
and instead have the callers do the "denied connection" logging.


More information about the samba-technical mailing list