From cfa7510e19b5e593af8c4da6e89b6a99adfe8b2b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 26 Nov 2010 11:36:29 +1100 Subject: wintest: do an initial replication of CN=Configuration to transfer dnsHostname this fixes the drs replication in the dcpromo test --- wintest/test-s4-howto.py | 4 ++++ 1 file changed, 4 insertions(+) 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"]) -- cgit