selftest: Don't use global dirs when parsing customdc realm
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 30 May 2019 02:55:52 +0000 (14:55 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 31 May 2019 06:34:36 +0000 (06:34 +0000)
commitb23d005cdc646e02af3c38852f75e4505070768e
tree0a18287399b0fdc764b23079552d066b7f6552a9
parent6defc1f183d6a9f24af1674d1dfee36d9e9bdc76
selftest: Don't use global dirs when parsing customdc realm

When creating the customdc, testparm would default to using
/usr/local/samba sub-directories for creating sockets and lock files.
Instead, pass in the tmpdir we just created as an option to the command.

Normally this didn't cause a noticeable problem, however, if we run the
command with UID-wrapper but without socket-wrapper (i.e.
USE_NAMESPACES=1), then it fails completely.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri May 31 06:34:36 UTC 2019 on sn-devel-184
selftest/target/Samba4.pm