Advertisement
Guest User

Untitled

a guest
Dec 13th, 2010
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.62 KB | None | 0 0
  1. $ su zahari -c "VBoxManage controlvm win2003r2a poweroff"
  2. Oracle VM VirtualBox Command Line Management Interface Version 3.2.12
  3. (C) 2005-2010 Oracle Corporation
  4. All rights reserved.
  5.  
  6. 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
  7. Starting VMs for joining win2003r2a as a second DC using samba-tool join DC
  8. $ killall -9 -q samba smbd nmbd winbindd
  9. $ su zahari -c "VBoxManage controlvm win2003r2a poweroff"
  10. Oracle VM VirtualBox Command Line Management Interface Version 3.2.12
  11. (C) 2005-2010 Oracle Corporation
  12. All rights reserved.
  13.  
  14. ERROR: The machine 'win2003r2a' does not have an open session
  15. Details: code VBOX_E_INVALID_SESSION_STATE (0x80bb000b), component Machine, interface IMachine, callee nsISupports
  16. Context: "OpenExistingSession(a->session, machineuuid)" at line 90 of file VBoxManageControlVM.cpp
  17. $ su zahari -c "VBoxManage snapshot win2003r2a restore samba4-join2 && VBoxManage startvm win2003r2a"
  18. Oracle VM VirtualBox Command Line Management Interface Version 3.2.12
  19. (C) 2005-2010 Oracle Corporation
  20. All rights reserved.
  21.  
  22. Restoring snapshot fc232be3-a066-4a8a-a8d8-d089498eaae6
  23. 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
  24. Oracle VM VirtualBox Command Line Management Interface Version 3.2.12
  25. (C) 2005-2010 Oracle Corporation
  26. All rights reserved.
  27.  
  28. Waiting for the VM to power on...
  29. VM has been successfully started.
  30. $ /usr/sbin/rndc -c /usr/local/samba/etc/rndc.conf flush
  31. 13-Dec-2010 18:32:42.180 received control channel command 'flush'
  32. 13-Dec-2010 18:32:42.181 flushing caches in all views succeeded
  33. $ rm -rf etc/smb.conf private
  34. $ telnet 10.191.10.92 -l 'w2003-wintest-0\administrator'
  35. Trying 10.191.10.92...
  36. Connected to 10.191.10.92.
  37. Escape character is '^]'.
  38. Welcome to Microsoft Telnet Service
  39.  
  40. password: p@r0l@
  41.  
  42.  
  43.  
  44. *===============================================================
  45. Welcome to Microsoft Telnet Server.
  46. *===============================================================
  47. C:\Documents and Settings\Administrator>date
  48. date
  49. The current date is: Mon 12/13/2010
  50. Enter the new date: (mm-dd-yy) 12-13-10
  51.  
  52. 12-13-10
  53.  
  54. C:\Documents and Settings\Administrator>
  55. time
  56. time
  57. The current time is: 18:32:57.38
  58. Enter the new time: 18:32:57
  59.  
  60. 18:32:57
  61.  
  62. C:\Documents and Settings\Administrator>tlntadmn config maxconn=1024
  63.  
  64. tlntadmn config maxconn=1024
  65. The settings were successfully updated.
  66.  
  67.  
  68. C:\Documents and Settings\Administrator>netsh advfirewall set allprofiles state off
  69. netsh advfirewall set allprofiles state off
  70.  
  71. The following command was not found: advfirewall set allprofiles state off.
  72.  
  73. C:\Documents and Settings\Administrator>netsh firewall set opmode mode = DISABLE profile = ALL
  74. netsh firewall set opmode mode = DISABLE profile = ALL
  75.  
  76. Ok.
  77.  
  78.  
  79. C:\Documents and Settings\Administrator>ipconfig /all
  80. ipconfig /all
  81.  
  82.  
  83. Windows IP Configuration
  84.  
  85. Host Name . . . . . . . . . . . . : w2k3a
  86. Primary Dns Suffix . . . . . . . : w2003-wintest.local
  87. Node Type . . . . . . . . . . . . : Unknown
  88. IP Routing Enabled. . . . . . . . : No
  89. WINS Proxy Enabled. . . . . . . . : No
  90. DNS Suffix Search List. . . . . . : w2003-wintest.local
  91.  
  92. Ethernet adapter Local Area Connection:
  93.  
  94. Connection-specific DNS Suffix . :
  95. Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapter
  96. Physical Address. . . . . . . . . : 08-00-27-FE-C7-29
  97. DHCP Enabled. . . . . . . . . . . : No
  98. IP Address. . . . . . . . . . . . : 10.191.10.92
  99. Subnet Mask . . . . . . . . . . . : 255.255.0.0
  100. Default Gateway . . . . . . . . . : 10.191.254.254
  101. DNS Servers . . . . . . . . . . . : 127.0.0.1
  102.  
  103. C:\Documents and Settings\Administrator>Configuring a windows VM win2003r2a at the first DC in the domain using dcpromo
  104. $ telnet 10.191.10.92 -l 'administrator'
  105. Trying 10.191.10.92...
  106. Connected to 10.191.10.92.
  107. Escape character is '^]'.
  108. Welcome to Microsoft Telnet Service
  109.  
  110. password: p@r0l@
  111.  
  112.  
  113.  
  114. *===============================================================
  115. Welcome to Microsoft Telnet Server.
  116. *===============================================================
  117. C:\Documents and Settings\Administrator>date
  118. date
  119. The current date is: Mon 12/13/2010
  120. Enter the new date: (mm-dd-yy)
  121. 12-13-10
  122. 12-13-10
  123.  
  124. C:\Documents and Settings\Administrator>time
  125.  
  126. time
  127. The current time is: 18:33:07.24
  128. Enter the new time: 18:33:06
  129.  
  130. 18:33:06
  131.  
  132. C:\Documents and Settings\Administrator>tlntadmn config maxconn=1024
  133.  
  134. tlntadmn config maxconn=1024
  135. The settings were successfully updated.
  136.  
  137.  
  138. C:\Documents and Settings\Administrator>netsh advfirewall set allprofiles state off
  139. netsh advfirewall set allprofiles state off
  140.  
  141. The following command was not found: advfirewall set allprofiles state off.
  142.  
  143. C:\Documents and Settings\Administrator>netsh firewall set opmode mode = DISABLE profile = ALL
  144. netsh firewall set opmode mode = DISABLE profile = ALL
  145.  
  146. Ok.
  147.  
  148.  
  149. C:\Documents and Settings\Administrator>dcdiag
  150. dcdiag
  151. 'dcdiag' is not recognized as an internal or external command,
  152. operable program or batch file.
  153.  
  154. C:\Documents and Settings\Administrator>net config Workstation
  155.  
  156. net config Workstation
  157.  
  158. Computer name \\W2K3A
  159. Full Computer name w2k3a.w2003-wintest.local
  160. User name Administrator
  161.  
  162. Workstation active on
  163. NetbiosSmb (000000000000)
  164. NetBT_Tcpip_{EB26A120-784C-4E58-B703-E6539CCAB591} (080027FEC729)
  165.  
  166. Software version Microsoft Windows Server 2003
  167.  
  168. Workstation domain W2003-WINTEST-0
  169. Workstation Domain DNS Name w2003-wintest.local
  170. Logon domain W2003-WINTEST-0
  171.  
  172. COM Open Timeout (sec) 0
  173. COM Send Count (byte) 16
  174. COM Send Timeout (msec) 250
  175. The command completed successfully.
  176.  
  177.  
  178. C:\Documents and Settings\Administrator>Joining win2003r2a as a second DC using samba-tool join DC
  179. $ nc -v -z -w 1 10.191.10.92 389
  180. Connection to 10.191.10.92 389 port [tcp/ldap] succeeded!
  181.  
  182. $ host -t SRV _ldap._tcp.W2003-WINTEST.LOCAL 10.191.10.92
  183. Using domain server:
  184. Name: 10.191.10.92
  185. Address: 10.191.10.92#53
  186. Aliases:
  187.  
  188. _ldap._tcp.W2003-WINTEST.LOCAL has SRV record 0 100 389 w2k3a.w2003-wintest.local.
  189.  
  190. $ bin/samba-tool drs showrepl w2k3a.W2003-WINTEST.LOCAL -Uadministrator%p@r0l@
  191. Default-First-Site-Name\W2K3A
  192. DSA Options: 0x00000001
  193. DSA object GUID: ece51089-d40c-462d-99ff-9787901e078b
  194. DSA invocationId: ece51089-d40c-462d-99ff-9787901e078b
  195.  
  196. ==== INBOUND NEIGHBORS ====
  197.  
  198. ==== OUTBOUND NEIGHBORS ====
  199.  
  200. ==== KCC CONNECTION OBJECTS ====
  201.  
  202.  
  203. $ bin/samba-tool join W2003-WINTEST.LOCAL DC -Uadministrator%p@r0l@ -d1 --option=interfaces=eth0
  204. Finding a writeable DC for domain 'W2003-WINTEST.LOCAL'
  205. Found DC w2k3a.w2003-wintest.local
  206. Failed to get CCACHE for GSSAPI client: Cannot contact any KDC for requested realm
  207. workgroup is W2003-WINTEST-0
  208. realm is w2003-wintest.local
  209. checking samaccountname
  210. Adding CN=DARKSTAR,OU=Domain Controllers,DC=w2003-wintest,DC=local
  211. Adding CN=DARKSTAR,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=w2003-wintest,DC=local
  212. Adding CN=NTDS Settings,CN=DARKSTAR,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=w2003-wintest,DC=local
  213. Failed to get CCACHE for GSSAPI client: Cannot contact any KDC for requested realm
  214. Adding SPNs to CN=DARKSTAR,OU=Domain Controllers,DC=w2003-wintest,DC=local
  215. Setting account password for DARKSTAR$
  216. Enabling account
  217. Calling bare provision
  218. Provision OK for domain DN DC=w2003-wintest,DC=local
  219. Starting replication
  220. Failed to get CCACHE for GSSAPI client: Cannot contact any KDC for requested realm
  221. Schema-DN[CN=Schema,CN=Configuration,DC=w2003-wintest,DC=local] objects[267] linked_values[0]
  222. Schema-DN[CN=Schema,CN=Configuration,DC=w2003-wintest,DC=local] objects[267] linked_values[0]
  223. Schema-DN[CN=Schema,CN=Configuration,DC=w2003-wintest,DC=local] objects[267] linked_values[0]
  224. Schema-DN[CN=Schema,CN=Configuration,DC=w2003-wintest,DC=local] objects[267] linked_values[0]
  225. Schema-DN[CN=Schema,CN=Configuration,DC=w2003-wintest,DC=local] objects[199] linked_values[0]
  226. Analyze and apply schema objects
  227. Schema for DRS tests using python
  228. Failed to find our own NTDS Settings invocationId in the ldb!
  229. Failed to find our own NTDS Settings invocationId in the ldb!
  230. Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[267] linked_values[0]
  231. Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[534] linked_values[0]
  232. Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[801] linked_values[0]
  233. Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[1068] linked_values[0]
  234. Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[1335] linked_values[0]
  235. Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[1518] linked_values[0]
  236. Partition[DC=w2003-wintest,DC=local] objects[218] linked_values[0]
  237. Committing SAM database
  238. Setting isSynchronized
  239. Setting up secrets database
  240. Joined domain W2003-WINTEST-0 (SID S-1-5-21-32688619-234888813-451781942) as a DC
  241. $ bin/samba-tool drs kcc w2k3a.W2003-WINTEST.LOCAL -Uadministrator@W2003-WINTEST.LOCAL%p@r0l@
  242. Consistency check on w2k3a.W2003-WINTEST.LOCAL successful.
  243. Adding test shares
  244. $ mkdir -p test
  245. $ mkdir -p var/profiles
  246. Starting Samba4
  247. $ killall -9 -q samba smbd nmbd winbindd
  248. $ sbin/samba --option panic action=gnome-terminal -e "gdb --pid %PID%"
  249. $ nc -v -z -w 1 10.191.10.90 139
  250. nc: connect to 10.191.10.90 port 139 (tcp) failed: Connection refused
  251.  
  252. retrying (retries=199 delay=3)
  253. $ nc -v -z -w 1 10.191.10.90 139
  254. Connection to 10.191.10.90 139 port [tcp/netbios-ssn] succeeded!
  255.  
  256. $ sbin/samba_dnsupdate --fail-immediately
  257. $ /usr/sbin/rndc -c /usr/local/samba/etc/rndc.conf flush
  258. 13-Dec-2010 18:33:45.901 received control channel command 'flush'
  259. 13-Dec-2010 18:33:45.902 flushing caches in all views succeeded
  260. Checking the DC join is OK
  261. $ bin/smbclient -L darkstar.W2003-WINTEST.LOCAL -Uadministrator@W2003-WINTEST.LOCAL%p@r0l@
  262.  
  263. Sharename Type Comment
  264. --------- ---- -------
  265. netlogon Disk
  266. sysvol Disk
  267. test Disk
  268. profiles Disk
  269. IPC$ IPC IPC Service
  270. REWRITE: list servers not implemented
  271.  
  272. $ host -t A darkstar.W2003-WINTEST.LOCAL.
  273. darkstar.W2003-WINTEST.LOCAL has address 10.191.10.90
  274.  
  275. $ telnet 10.191.10.92 -l 'w2003-wintest-0\administrator'
  276. Trying 10.191.10.92...
  277. Connected to 10.191.10.92.
  278. Escape character is '^]'.
  279. Welcome to Microsoft Telnet Service
  280.  
  281. password: p@r0l@
  282.  
  283.  
  284. *===============================================================
  285. Welcome to Microsoft Telnet Server.
  286. *===============================================================
  287. C:\Documents and Settings\Administrator>date
  288. date
  289. The current date is: Mon 12/13/2010
  290. Enter the new date: (mm-dd-yy) 12-13-10
  291.  
  292. 12-13-10
  293.  
  294. C:\Documents and Settings\Administrator>time
  295.  
  296. time
  297. The current time is: 18:33:47.43
  298. Enter the new time:
  299. 18:33:47
  300. 18:33:47
  301.  
  302. C:\Documents and Settings\Administrator>tlntadmn config maxconn=1024
  303.  
  304. tlntadmn config maxconn=1024
  305. The settings were successfully updated.
  306.  
  307. C:\Documents and Settings\Administrator>
  308. netsh advfirewall set allprofiles state off
  309. netsh advfirewall set allprofiles state off
  310.  
  311. The following command was not found: advfirewall set allprofiles state off.
  312.  
  313. C:\Documents and Settings\Administrator>netsh firewall set opmode mode = DISABLE profile = ALL
  314. netsh firewall set opmode mode = DISABLE profile = ALL
  315.  
  316. Ok.
  317.  
  318.  
  319. C:\Documents and Settings\Administrator>Forcing kcc runs, and replication
  320. $ bin/samba-tool drs kcc w2k3a.W2003-WINTEST.LOCAL -Uadministrator@W2003-WINTEST.LOCAL%p@r0l@
  321. Consistency check on w2k3a.W2003-WINTEST.LOCAL successful.
  322. $ bin/samba-tool drs kcc darkstar.W2003-WINTEST.LOCAL -Uadministrator@W2003-WINTEST.LOCAL%p@r0l@
  323. ERROR(runtime): DsExecuteKCC failed - (-1073610723, 'NT_STATUS_RPC_PROTOCOL_ERROR')
  324. Cleaning up ...
  325. restoring /etc/resolv.conf
  326. $ mv -f /etc/resolv.conf.wintest-bak /etc/resolv.conf
  327. Traceback (most recent call last):
  328. File "wintest/test-s4-howto.py", line 666, in <module>
  329. test_howto(t)
  330. File "wintest/test-s4-howto.py", line 647, in test_howto
  331. test_join_as_dc(t, "W2K3A")
  332. File "wintest/test-s4-howto.py", line 425, in test_join_as_dc
  333. t.run_cmd('bin/samba-tool drs kcc ${HOSTNAME}.${WIN_REALM} -Uadministrator@${WIN_REALM}%${WIN_PASS}')
  334. File "/root/samba-master/wintest/wintest.py", line 171, in run_cmd
  335. return subprocess.check_call(cmd, shell=shell, cwd=dir)
  336. File "/usr/lib/python2.6/subprocess.py", line 488, in check_call
  337. raise CalledProcessError(retcode, cmd)
  338. subprocess.CalledProcessError: Command 'bin/samba-tool drs kcc darkstar.W2003-WINTEST.LOCAL -Uadministrator@W2003-WINTEST.LOCAL%p@r0l@' returned non-zero exit status 255
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement