summaryrefslogtreecommitdiff
path: root/source4/scripting/bin
diff options
context:
space:
mode:
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>2025-06-04 14:59:02 +1200
committerDouglas Bagnall <dbagnall@samba.org>2025-06-05 23:06:37 +0000
commitb41c6caaf02b436daba40d9d84006a15df661d98 (patch)
treeb33c30c7821ef0987d3d2532d7a26509a8b8a895 /source4/scripting/bin
parent2594a0c57f43a4b0b16ab072833f8e0f0492b522 (diff)
downloadsamba-b41c6caaf02b436daba40d9d84006a15df661d98.tar.gz
samba-b41c6caaf02b436daba40d9d84006a15df661d98.tar.bz2
samba-b41c6caaf02b436daba40d9d84006a15df661d98.zip
samba_dnsupdate: samba-tool add avoids existing record error messages
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13613 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz> Reviewed-by: Rowland Penny <rpenny@samba.org>
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate
index ec8aed6edbe..2ca3dea1775 100755
--- a/source4/scripting/bin/samba_dnsupdate
+++ b/source4/scripting/bin/samba_dnsupdate
@@ -590,6 +590,8 @@ def call_samba_tool(d, op="add", zone=None):
try:
cmd = cmd_dns()
full_args = ["dns", op, "--use-kerberos", "off", "-P"] + args
+ if op == 'add':
+ full_args.append("--allow-existing")
if opts.verbose:
print(f'Calling samba-tool {" ".join(full_args)}')
command, resolved_args = cmd._resolve(*full_args)