summaryrefslogtreecommitdiff
path: root/wintest
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-26 11:36:29 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-26 03:08:21 +0100
commitcfa7510e19b5e593af8c4da6e89b6a99adfe8b2b (patch)
treefe0fa385a8360882f088e40f9d4cfb10160be26b /wintest
parent23bffff98c7d1bd700509bb3fa6eaca3e1524096 (diff)
downloadsamba-cfa7510e19b5e593af8c4da6e89b6a99adfe8b2b.tar.gz
samba-cfa7510e19b5e593af8c4da6e89b6a99adfe8b2b.tar.bz2
samba-cfa7510e19b5e593af8c4da6e89b6a99adfe8b2b.zip
wintest: do an initial replication of CN=Configuration to transfer dnsHostname
this fixes the drs replication in the dcpromo test
Diffstat (limited to 'wintest')
-rwxr-xr-xwintest/test-s4-howto.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wintest/test-s4-howto.py b/wintest/test-s4-howto.py
index 0b239f9bc3..c05d084dc5 100755
--- a/wintest/test-s4-howto.py
+++ b/wintest/test-s4-howto.py
@@ -336,6 +336,10 @@ def test_dcpromo(t, vm):
t.cmd_contains("bin/samba-tool drs kcc ${WIN_HOSTNAME}.${LCREALM} -Uadministrator@${LCREALM}%${PASSWORD1}", ['Consistency check', 'successful'])
t.kinit("administrator@${REALM}", "${PASSWORD1}")
+
+ # the first replication will transfer the dnsHostname attribute
+ t.cmd_contains("bin/samba-tool drs replicate ${HOSTNAME}.${LCREALM} ${WIN_HOSTNAME} CN=Configuration,${BASEDN} -k yes", ["was successful"])
+
for nc in [ '${BASEDN}', 'CN=Configuration,${BASEDN}', 'CN=Schema,CN=Configuration,${BASEDN}' ]:
t.cmd_contains("bin/samba-tool drs replicate ${HOSTNAME}.${LCREALM} ${WIN_HOSTNAME}.${LCREALM} %s -k yes" % nc, ["was successful"])
t.cmd_contains("bin/samba-tool drs replicate ${WIN_HOSTNAME}.${LCREALM} ${HOSTNAME}.${LCREALM} %s -k yes" % nc, ["was successful"])