Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ su zahari -c "VBoxManage controlvm win2003r2a poweroff"
- Oracle VM VirtualBox Command Line Management Interface Version 3.2.12
- (C) 2005-2010 Oracle Corporation
- All rights reserved.
- 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
- Starting VMs for joining win2003r2a as a second DC using samba-tool join DC
- $ killall -9 -q samba smbd nmbd winbindd
- $ su zahari -c "VBoxManage controlvm win2003r2a poweroff"
- Oracle VM VirtualBox Command Line Management Interface Version 3.2.12
- (C) 2005-2010 Oracle Corporation
- All rights reserved.
- ERROR: The machine 'win2003r2a' does not have an open session
- Details: code VBOX_E_INVALID_SESSION_STATE (0x80bb000b), component Machine, interface IMachine, callee nsISupports
- Context: "OpenExistingSession(a->session, machineuuid)" at line 90 of file VBoxManageControlVM.cpp
- $ su zahari -c "VBoxManage snapshot win2003r2a restore samba4-join2 && VBoxManage startvm win2003r2a"
- Oracle VM VirtualBox Command Line Management Interface Version 3.2.12
- (C) 2005-2010 Oracle Corporation
- All rights reserved.
- Restoring snapshot fc232be3-a066-4a8a-a8d8-d089498eaae6
- 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
- Oracle VM VirtualBox Command Line Management Interface Version 3.2.12
- (C) 2005-2010 Oracle Corporation
- All rights reserved.
- Waiting for the VM to power on...
- VM has been successfully started.
- $ /usr/sbin/rndc -c /usr/local/samba/etc/rndc.conf flush
- 13-Dec-2010 18:32:42.180 received control channel command 'flush'
- 13-Dec-2010 18:32:42.181 flushing caches in all views succeeded
- $ rm -rf etc/smb.conf private
- $ telnet 10.191.10.92 -l 'w2003-wintest-0\administrator'
- Trying 10.191.10.92...
- Connected to 10.191.10.92.
- Escape character is '^]'.
- Welcome to Microsoft Telnet Service
- password: p@r0l@
- *===============================================================
- Welcome to Microsoft Telnet Server.
- *===============================================================
- C:\Documents and Settings\Administrator>date
- date
- The current date is: Mon 12/13/2010
- Enter the new date: (mm-dd-yy) 12-13-10
- 12-13-10
- C:\Documents and Settings\Administrator>
- time
- time
- The current time is: 18:32:57.38
- Enter the new time: 18:32:57
- 18:32:57
- C:\Documents and Settings\Administrator>tlntadmn config maxconn=1024
- tlntadmn config maxconn=1024
- The settings were successfully updated.
- C:\Documents and Settings\Administrator>netsh advfirewall set allprofiles state off
- netsh advfirewall set allprofiles state off
- The following command was not found: advfirewall set allprofiles state off.
- C:\Documents and Settings\Administrator>netsh firewall set opmode mode = DISABLE profile = ALL
- netsh firewall set opmode mode = DISABLE profile = ALL
- Ok.
- C:\Documents and Settings\Administrator>ipconfig /all
- ipconfig /all
- Windows IP Configuration
- Host Name . . . . . . . . . . . . : w2k3a
- Primary Dns Suffix . . . . . . . : w2003-wintest.local
- Node Type . . . . . . . . . . . . : Unknown
- IP Routing Enabled. . . . . . . . : No
- WINS Proxy Enabled. . . . . . . . : No
- DNS Suffix Search List. . . . . . : w2003-wintest.local
- Ethernet adapter Local Area Connection:
- Connection-specific DNS Suffix . :
- Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapter
- Physical Address. . . . . . . . . : 08-00-27-FE-C7-29
- DHCP Enabled. . . . . . . . . . . : No
- IP Address. . . . . . . . . . . . : 10.191.10.92
- Subnet Mask . . . . . . . . . . . : 255.255.0.0
- Default Gateway . . . . . . . . . : 10.191.254.254
- DNS Servers . . . . . . . . . . . : 127.0.0.1
- C:\Documents and Settings\Administrator>Configuring a windows VM win2003r2a at the first DC in the domain using dcpromo
- $ telnet 10.191.10.92 -l 'administrator'
- Trying 10.191.10.92...
- Connected to 10.191.10.92.
- Escape character is '^]'.
- Welcome to Microsoft Telnet Service
- password: p@r0l@
- *===============================================================
- Welcome to Microsoft Telnet Server.
- *===============================================================
- C:\Documents and Settings\Administrator>date
- date
- The current date is: Mon 12/13/2010
- Enter the new date: (mm-dd-yy)
- 12-13-10
- 12-13-10
- C:\Documents and Settings\Administrator>time
- time
- The current time is: 18:33:07.24
- Enter the new time: 18:33:06
- 18:33:06
- C:\Documents and Settings\Administrator>tlntadmn config maxconn=1024
- tlntadmn config maxconn=1024
- The settings were successfully updated.
- C:\Documents and Settings\Administrator>netsh advfirewall set allprofiles state off
- netsh advfirewall set allprofiles state off
- The following command was not found: advfirewall set allprofiles state off.
- C:\Documents and Settings\Administrator>netsh firewall set opmode mode = DISABLE profile = ALL
- netsh firewall set opmode mode = DISABLE profile = ALL
- Ok.
- C:\Documents and Settings\Administrator>dcdiag
- dcdiag
- 'dcdiag' is not recognized as an internal or external command,
- operable program or batch file.
- C:\Documents and Settings\Administrator>net config Workstation
- net config Workstation
- Computer name \\W2K3A
- Full Computer name w2k3a.w2003-wintest.local
- User name Administrator
- Workstation active on
- NetbiosSmb (000000000000)
- NetBT_Tcpip_{EB26A120-784C-4E58-B703-E6539CCAB591} (080027FEC729)
- Software version Microsoft Windows Server 2003
- Workstation domain W2003-WINTEST-0
- Workstation Domain DNS Name w2003-wintest.local
- Logon domain W2003-WINTEST-0
- COM Open Timeout (sec) 0
- COM Send Count (byte) 16
- COM Send Timeout (msec) 250
- The command completed successfully.
- C:\Documents and Settings\Administrator>Joining win2003r2a as a second DC using samba-tool join DC
- $ nc -v -z -w 1 10.191.10.92 389
- Connection to 10.191.10.92 389 port [tcp/ldap] succeeded!
- $ host -t SRV _ldap._tcp.W2003-WINTEST.LOCAL 10.191.10.92
- Using domain server:
- Name: 10.191.10.92
- Address: 10.191.10.92#53
- Aliases:
- _ldap._tcp.W2003-WINTEST.LOCAL has SRV record 0 100 389 w2k3a.w2003-wintest.local.
- $ bin/samba-tool drs showrepl w2k3a.W2003-WINTEST.LOCAL -Uadministrator%p@r0l@
- Default-First-Site-Name\W2K3A
- DSA Options: 0x00000001
- DSA object GUID: ece51089-d40c-462d-99ff-9787901e078b
- DSA invocationId: ece51089-d40c-462d-99ff-9787901e078b
- ==== INBOUND NEIGHBORS ====
- ==== OUTBOUND NEIGHBORS ====
- ==== KCC CONNECTION OBJECTS ====
- $ bin/samba-tool join W2003-WINTEST.LOCAL DC -Uadministrator%p@r0l@ -d1 --option=interfaces=eth0
- Finding a writeable DC for domain 'W2003-WINTEST.LOCAL'
- Found DC w2k3a.w2003-wintest.local
- Failed to get CCACHE for GSSAPI client: Cannot contact any KDC for requested realm
- workgroup is W2003-WINTEST-0
- realm is w2003-wintest.local
- checking samaccountname
- Adding CN=DARKSTAR,OU=Domain Controllers,DC=w2003-wintest,DC=local
- Adding CN=DARKSTAR,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=w2003-wintest,DC=local
- Adding CN=NTDS Settings,CN=DARKSTAR,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=w2003-wintest,DC=local
- Failed to get CCACHE for GSSAPI client: Cannot contact any KDC for requested realm
- Adding SPNs to CN=DARKSTAR,OU=Domain Controllers,DC=w2003-wintest,DC=local
- Setting account password for DARKSTAR$
- Enabling account
- Calling bare provision
- Provision OK for domain DN DC=w2003-wintest,DC=local
- Starting replication
- Failed to get CCACHE for GSSAPI client: Cannot contact any KDC for requested realm
- Schema-DN[CN=Schema,CN=Configuration,DC=w2003-wintest,DC=local] objects[267] linked_values[0]
- Schema-DN[CN=Schema,CN=Configuration,DC=w2003-wintest,DC=local] objects[267] linked_values[0]
- Schema-DN[CN=Schema,CN=Configuration,DC=w2003-wintest,DC=local] objects[267] linked_values[0]
- Schema-DN[CN=Schema,CN=Configuration,DC=w2003-wintest,DC=local] objects[267] linked_values[0]
- Schema-DN[CN=Schema,CN=Configuration,DC=w2003-wintest,DC=local] objects[199] linked_values[0]
- Analyze and apply schema objects
- Schema for DRS tests using python
- Failed to find our own NTDS Settings invocationId in the ldb!
- Failed to find our own NTDS Settings invocationId in the ldb!
- Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[267] linked_values[0]
- Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[534] linked_values[0]
- Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[801] linked_values[0]
- Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[1068] linked_values[0]
- Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[1335] linked_values[0]
- Partition[CN=Configuration,DC=w2003-wintest,DC=local] objects[1518] linked_values[0]
- Partition[DC=w2003-wintest,DC=local] objects[218] linked_values[0]
- Committing SAM database
- Setting isSynchronized
- Setting up secrets database
- Joined domain W2003-WINTEST-0 (SID S-1-5-21-32688619-234888813-451781942) as a DC
- $ bin/samba-tool drs kcc w2k3a.W2003-WINTEST.LOCAL -Uadministrator@W2003-WINTEST.LOCAL%p@r0l@
- Consistency check on w2k3a.W2003-WINTEST.LOCAL successful.
- Adding test shares
- $ mkdir -p test
- $ mkdir -p var/profiles
- Starting Samba4
- $ killall -9 -q samba smbd nmbd winbindd
- $ sbin/samba --option panic action=gnome-terminal -e "gdb --pid %PID%"
- $ nc -v -z -w 1 10.191.10.90 139
- nc: connect to 10.191.10.90 port 139 (tcp) failed: Connection refused
- retrying (retries=199 delay=3)
- $ nc -v -z -w 1 10.191.10.90 139
- Connection to 10.191.10.90 139 port [tcp/netbios-ssn] succeeded!
- $ sbin/samba_dnsupdate --fail-immediately
- $ /usr/sbin/rndc -c /usr/local/samba/etc/rndc.conf flush
- 13-Dec-2010 18:33:45.901 received control channel command 'flush'
- 13-Dec-2010 18:33:45.902 flushing caches in all views succeeded
- Checking the DC join is OK
- $ bin/smbclient -L darkstar.W2003-WINTEST.LOCAL -Uadministrator@W2003-WINTEST.LOCAL%p@r0l@
- Sharename Type Comment
- --------- ---- -------
- netlogon Disk
- sysvol Disk
- test Disk
- profiles Disk
- IPC$ IPC IPC Service
- REWRITE: list servers not implemented
- $ host -t A darkstar.W2003-WINTEST.LOCAL.
- darkstar.W2003-WINTEST.LOCAL has address 10.191.10.90
- $ telnet 10.191.10.92 -l 'w2003-wintest-0\administrator'
- Trying 10.191.10.92...
- Connected to 10.191.10.92.
- Escape character is '^]'.
- Welcome to Microsoft Telnet Service
- password: p@r0l@
- *===============================================================
- Welcome to Microsoft Telnet Server.
- *===============================================================
- C:\Documents and Settings\Administrator>date
- date
- The current date is: Mon 12/13/2010
- Enter the new date: (mm-dd-yy) 12-13-10
- 12-13-10
- C:\Documents and Settings\Administrator>time
- time
- The current time is: 18:33:47.43
- Enter the new time:
- 18:33:47
- 18:33:47
- C:\Documents and Settings\Administrator>tlntadmn config maxconn=1024
- tlntadmn config maxconn=1024
- The settings were successfully updated.
- C:\Documents and Settings\Administrator>
- netsh advfirewall set allprofiles state off
- netsh advfirewall set allprofiles state off
- The following command was not found: advfirewall set allprofiles state off.
- C:\Documents and Settings\Administrator>netsh firewall set opmode mode = DISABLE profile = ALL
- netsh firewall set opmode mode = DISABLE profile = ALL
- Ok.
- C:\Documents and Settings\Administrator>Forcing kcc runs, and replication
- $ bin/samba-tool drs kcc w2k3a.W2003-WINTEST.LOCAL -Uadministrator@W2003-WINTEST.LOCAL%p@r0l@
- Consistency check on w2k3a.W2003-WINTEST.LOCAL successful.
- $ bin/samba-tool drs kcc darkstar.W2003-WINTEST.LOCAL -Uadministrator@W2003-WINTEST.LOCAL%p@r0l@
- ERROR(runtime): DsExecuteKCC failed - (-1073610723, 'NT_STATUS_RPC_PROTOCOL_ERROR')
- Cleaning up ...
- restoring /etc/resolv.conf
- $ mv -f /etc/resolv.conf.wintest-bak /etc/resolv.conf
- Traceback (most recent call last):
- File "wintest/test-s4-howto.py", line 666, in <module>
- test_howto(t)
- File "wintest/test-s4-howto.py", line 647, in test_howto
- test_join_as_dc(t, "W2K3A")
- File "wintest/test-s4-howto.py", line 425, in test_join_as_dc
- t.run_cmd('bin/samba-tool drs kcc ${HOSTNAME}.${WIN_REALM} -Uadministrator@${WIN_REALM}%${WIN_PASS}')
- File "/root/samba-master/wintest/wintest.py", line 171, in run_cmd
- return subprocess.check_call(cmd, shell=shell, cwd=dir)
- File "/usr/lib/python2.6/subprocess.py", line 488, in check_call
- raise CalledProcessError(retcode, cmd)
- 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