Hi guys,
My mistake with Samba was that I didn't set a root password. First time when a machine wants to join the domain, you have to join it with the samba root user, so you have to add one to samba. Samba 3 is good, but I'm looking forward to get Samba 3 running.
In order to get it working all you have to do is
$ smbpasswd -a -m <machine-name>$
$ smbpasswd -a <user-name>
and add a root user to the samba. Besides that, you have to change your mains samba.conf file to be a domain controller:
[global]
netbios name = <your-machine-name>
server string = Samba %v on %L
workgroup = <your-domain-name>
; domain & local master browser
; coz we're dealing with Win2k
os level = 65 [or 99 if you want to be sure]
prefered master = yes
domain master = yes
local master = yes
domain logons = yes
encrypt passwords = yes [DO NOT FORGET THIS]
and add the logon scripting stuff!
A good tutorial about this, you can find at
Samba PDC mini-HOWTO.
Other tutorials at:
HOWTO Implement Samba as your PDC - Gentoo Linux Wiki samba setup and configuration http://ploug.eu.org/doc/samba-a4.pdf
It would be also a good idea to select the interfaces and ip subnets and do the bind interfaces stuff for more securty, otherwise, samba will bind even on the external interfaces and if you don't firewall, you can be vulnerable.
Have fun!