selftest: Test join against DC with non-default site
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 20 Sep 2018 01:08:50 +0000 (13:08 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 26 Sep 2018 05:49:17 +0000 (07:49 +0200)
commit89543af0e8ec392a9f50599ee819496eef53f02f
treeb54f6e0393231037c2fbf441527c716fb7ee0dda
parent696fa6a1e6c615a992a3016ff32405b864b62eec
selftest: Test join against DC with non-default site

Recent changes around restoring a domain that lacked
Default-First-Site-Name highlighted a problem. Normally when you join a
DC to a domain, samba-tool works out the correct site to use
automatically. However, if the join uses '--server' to select a DC, then
this doesn't work. It defaults back to Default-First-Site-Name, and the
join command fails if this site doesn't exist.

All the testenvs had Default-First-Site-Name present, so this was never
tested. Now the backupfromdc no longer has a Default-First-Site-Name
site, so running a simple join against that DC fails, highlighting the
problem.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/knownfail.d/join_ldapcmp [new file with mode: 0644]
source4/selftest/tests.py