]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba_dnsupdate: Fix deprecation warnings
authorVolker Lendecke <vl@samba.org>
Tue, 7 Sep 2021 13:04:16 +0000 (15:04 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 7 Sep 2021 18:26:33 +0000 (18:26 +0000)
We should not call samba-tool with -k anymore

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/scripting/bin/samba_dnsupdate

index 518bb898d33e940bb7a465fcf8032d0e3ae38715..de39ac39cad9e011d9bfcf0e0cbb35e005c42196 100755 (executable)
@@ -589,8 +589,8 @@ def call_samba_tool(d, op="add", zone=None):
     try:
         cmd = cmd_dns()
         if opts.verbose:
-            print("Calling samba-tool dns %s -k no -P %s" % (op, args))
-        ret = cmd._run("dns", op, "-k", "no", "-P", *args)
+            print(f'Calling samba-tool dns {op} --use-kerberos off -P {args}')
+        ret = cmd._run("dns", op, "--use-kerberos", "off", "-P", *args)
         if ret == -1:
             if opts.fail_immediately:
                 sys.exit(1)