dnsserver: Return access denied to the caller if the user was not a DNS admin
commit835e1564943b3a8a0c8cbdc55db5f0d070ba8f17
authorGarming Sam <garming@catalyst.net.nz>
Fri, 1 Feb 2019 01:11:18 +0000 (1 14:11 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 11 Feb 2019 06:43:31 +0000 (11 07:43 +0100)
treed096d86f254287dd069a1ac774b33a0db7270303
parent244e2a02796b2ee85b9db01cbea7043a7448a110
dnsserver: Return access denied to the caller if the user was not a DNS admin

This is not a proper fix to match Windows, but at the very least, it
should be more obvious to users (using samba-tool for instance), that
the user needs to be given more access or that they should use the
administrator.

Windows seems to deny access altogether by returning a fault after they
have bound to the pipe and actually sent an operation.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13771

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/rpc_server/dnsserver/dnsdb.c