cat /etc/samba/smb.conf
[global]
workgroup = nick
server string = test01
printcap name = /etc/printcap
load printers = yes
cups options = raw
log file = /var/log/samba/%m.log
max log size = 1024
security = domain
password server = 10.255.0.1
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
display charset =cp950
dos charset =cp950
unix charset =cp950
dns proxy = no
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no
[homes]
comment = Home Directories
browseable = yes
writable = yes
net join workgroupname -S adserver -Uuser1