selftest: Use a unique hostname/IP for the no_nss testenv
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 1 Aug 2017 05:18:45 +0000 (17:18 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 25 Sep 2017 22:41:16 +0000 (00:41 +0200)
commit25b9e06f4a66a5269221fa7477eda0eab8344c79
tree65467d0b717cdf3467835d8ab4db20cf64c35d82
parent8c56aa2c91c7946ef17b1eba6ed70ba9b5d0c16c
selftest: Use a unique hostname/IP for the no_nss testenv

The ad_dc_no_nss was re-using the ad_dc testenv but changing an
environment variable to disable the NSS wrapper module.

Presumably this would setup a second AD DC server with the same
hostname/IP as another DC (but with NSS disabled). This doesn't seem
like a good thing to be doing in the selftests. This patch changes
it so that the no_nss testenv uses a unique IP/hostname.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
selftest/target/Samba.pm
selftest/target/Samba4.pm