SAMBA domain controller configuration problem on Debian 6.0

merrall's picture

Forums: 

Hello ,this is my first time when i try to configure the server to act as a domain controller for windows network using SAMBA on debian 6.0 but i am experiencing some difficulties with it .
I tried to join the domain with the following OS : XP / Vista / Windows 7 .

All of them return the following error : "An active directory domain controller ( AD DC ) for the domain could not be contacted . Ensure that the domain name is typed correctly. " and
in the details window "The domain name "**************" might be a NetBIOS domain name. If this is the case, verify that the domain name is properly registered with WINS."
I tried to configure it like it is specified here : http://wiki.debian.org/SambaDomainController .

Samba config ( smb.conf ) :

# Samba config file created using SWAT
# from UNKNOWN (10.10.100.146)
# Date: 2012/09/20 16:05:03

[global]
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
logon drive = H:
guest ok = Yes
interfaces = eth*
username map = /etc/samba/smbusers
winbind trusted domains only = yes
time server = Yes
winbind use default domain = yes
passwd program = /usr/bin/passwd %u
logon home =
wins support = true
netbios name = ********************
logon script = netlogon.bat #Login script. Location is defined in [netlogon]
path = /home/samba/shared
logon path =
workgroup = **************************
os level = 20
add user script = /usr/sbin/useradd -m %u
add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u
preferred master = yes
delete user script = /usr/sbin/userdel -r %u
bind interfaces only = Yes
log level = 3
domain logons = Yes

[netlogon]
comment = Domain Logon Service
path = /home/samba/netlogon
valid users = %U
admin users = Administrator
write list = @admins
read only = No
browseable = No
locking = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[apps]
comment = Application Files
path = /apps
admin users = Administrator
read only = No

[data]
comment = Application Files
path = /data
admin users = Administrator
read only = No

Thank you .