]> git.ipfire.org Git - thirdparty/samba.git/commit
dnsupdate: Pass smb.conf through to samba-tool commands
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 30 Oct 2018 00:06:20 +0000 (13:06 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 1 Nov 2018 08:41:19 +0000 (09:41 +0100)
commitc35fb3a88b5c92c343d09f1a707806ea6e46db60
tree43108746bdaf770cdb09ff238555b0b4503413b9
parent1451b696ee332b49edf691221b97962c95a10fd6
dnsupdate: Pass smb.conf through to samba-tool commands

If you call samba_dnsupdate with a --configfile option, this wasn't
passed through to the samba-tool commands the script tries to run.
Normally, samba_dnsupdate would only be run on the DC itself, so it
shouldn't be a big deal, however, this may be a problem if you install
the samba database into a non-default location (i.e. not
/usr/local/samba).

This patch passes through the smb.conf file, if one was specified.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/scripting/bin/samba_dnsupdate