The following operations are only performed on win2000 Advanced Server. Er, I have not tried it on Win 2003 yet. If any of you have tried it, please leave a message to us whether it is successful or not. I am very grateful for this.
Samba version: 3.0.33
OS: centos 5.3
1. Set Samba PDC to BDC first
Modify/etc/samba/smb. conf and the following configurations:
[Global]
Workgroup = wlf // Domain Name
NetBIOS name = smb1 // NetBIOS Name
Domain logons = Yes // you do not need to change it to keep it accessible.
Domain Master = No // change Domain Master to no
Preferred master = No // set this to no
......
.......
After completing the preceding modifications, restart the domain controller.
Then, you can see the log similar to the following in the log file:
[2009/09/29 15:40:00, 0] nmbd/nmbd_logonnames.c: become_logon_server_success (124)
Become_logon_server_success: Samba is now a logon server for workgroup sh on subnet 192.168.253.51
This indicates that the service has been started successfully.
2. Import Win2000 Domain Controller data
1. Add Samba to the Win2000 domain before importing.
First, modify the/etc/resolv. Con file.
Modify:
|
Search Domain Name IP address of nameserver win2002 PDC |
Run the following command:
Net RPC join-s nt4pdc-W domname-u administrator % passwd
If yes, a message is displayed.
Joined domain Sh.
This indicates that the domain is successfully added.
2. The next step is to export the domain account information to our Samba.
Run the following command:
Net RPC vampire-s nt4pdc-u administrator % passwd
Commands available after import
Pdbedit-l
To view the imported account
Use commands
Net groupmap list allows you to view the relationship between groups.