wintest: test demote of DC
authorAndrew Bartlett <abartlet@samba.org>
Thu, 22 Mar 2012 22:40:39 +0000 (09:40 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 23 Mar 2012 02:04:08 +0000 (03:04 +0100)
wintest/test-s4-howto.py

index 294a94e7481d449c8d88f60ee256cf14561b78e1..36beabb2e361f82bb780bec1ff75a7d03c5322bb 100755 (executable)
@@ -464,6 +464,9 @@ def test_join_as_dc(t, vm):
     t.retry_cmd("bin/smbclient -L ${HOSTNAME}.${WIN_REALM} -Utest3%${PASSWORD3} -k no", ['LOGON_FAILURE'])
     t.retry_cmd("bin/smbclient -L ${WIN_HOSTNAME}.${WIN_REALM} -Utest2%${PASSWORD2} -k yes", ['LOGON_FAILURE'])
     t.retry_cmd("bin/smbclient -L ${HOSTNAME}.${WIN_REALM} -Utest3%${PASSWORD3} -k yes", ['LOGON_FAILURE'])
+
+    t.run_cmd('bin/samba-tool domain demote -Uadministrator@${WIN_REALM}%${WIN_PASS}')
+
     t.vm_poweroff("${WIN_VM}")