X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba-autobuild%2F.git;a=blobdiff_plain;f=source4%2Fscripting%2Fbin%2Fsamba_dnsupdate;fp=source4%2Fscripting%2Fbin%2Fsamba_dnsupdate;h=18b61977dff1c82b14b3a68a045988ada349b22c;hp=ae355e9ec4e904b394baea7ff3ab5eb58dcc2301;hb=c35fb3a88b5c92c343d09f1a707806ea6e46db60;hpb=1451b696ee332b49edf691221b97962c95a10fd6 diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate index ae355e9ec4e..18b61977dff 100755 --- a/source4/scripting/bin/samba_dnsupdate +++ b/source4/scripting/bin/samba_dnsupdate @@ -122,6 +122,7 @@ for i in IPs: else: IP4s.append(i) +smb_conf = sambaopts.get_loadparm_path() if opts.verbose: print("IPs: %s" % IPs) @@ -620,6 +621,9 @@ def call_samba_tool(d, op="add", zone=None): if d.type == "NS": args = [rpc_server_ip, zone, short_name, "NS", d.dest] + if smb_conf and args: + args += ["--configfile=" + smb_conf] + global error_count try: cmd = cmd_dns()