From: Douglas Bagnall Date: Wed, 17 Aug 2022 22:58:54 +0000 (+1200) Subject: samba-tool dns: catch werror.WERR_ACCESS_DENIED X-Git-Tag: talloc-2.4.0~1163 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbd815c111317568cf9001d9b68099276d42c1a2;p=thirdparty%2Fsamba.git samba-tool dns: catch werror.WERR_ACCESS_DENIED Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/netcmd/dns.py b/python/samba/netcmd/dns.py index b449b9da319..22c961baaf3 100644 --- a/python/samba/netcmd/dns.py +++ b/python/samba/netcmd/dns.py @@ -95,6 +95,7 @@ class DnsConnWrapper: werror.WERR_DNS_ERROR_ZONE_ALREADY_EXISTS: 'Zone already exists', werror.WERR_DNS_ERROR_RECORD_DOES_NOT_EXIST: 'The record does not exist', werror.WERR_DNS_ERROR_NAME_DOES_NOT_EXIST: 'The zone does not exist', + werror.WERR_ACCESS_DENIED: 'Insufficient permissions', } def __init__(self, server, lp, creds):