How to join Windows
[global]
workgroup = TNG
server string = Samba-TNG Server
os level = 33
domain master = yes
domain logons = yes
wins support = yes
writable = no
[netlogon]
comment = "Logonscripts and other profile data"
path = /etc/samba-tng/netlogon
[homes]
comment = "Home directory for %U"
writable = yes
For some clients (notably samba classic 3.4.0) you might need to add unicode = yes to the [global] section.
Restart the Samba-TNG daemons to get the configuration loaded.
Start rpclient as root. This program get's installed into $prefix/bin. You have to create a root user.
createuser root -p $s3cretRootPassword
groupadd machines
useradd -g machines -s /bin/false 'machine$'
Now go to your Windows box and join the domain. The domain name is “TNG”, the user is “root” and the password is the $s3cretRootPassword (see above

).