Link to home
Start Free TrialLog in
Avatar of psychic_zero
psychic_zeroFlag for Malaysia

asked on

Samba Domain Controller join problem with error "Device attached to the system is not functioning"

I have a Samba Domain Controller + OpenLDAP in a server. Then I've setup new server and install Samba and OpenLDAP. Using LDAP Browser tools, I have export and import all the LDAP tree from old to new server and do the initial configuration and after that copy exact all the smb, openldap and smbldap-tools configuration from old server to the new server.

Then using other isolated network, I want to try this new migrated Domain Controller server, but when I want to join to this domain using WindowsXP, the error "Device attached to the system is not functioning". But if I open the server for sharing using command \\PDCSVR, I can access to the shared folder in this new server. Can anyone help me? Attached is the copy of smb.conf for my server.
#====================== Global Settings =====================================
[global]

workgroup = PDCSVR
server string = PRIMARY DOMAIN CONTROLER
interfaces = lo eth0

domain master = yes
domain logons = yes
preferred master = yes
os level = 255
wins support = yes
dns proxy = yes

remote announce = 10.23.10.255 10.23.11.255 
remote browse sync = 10.23.10.255 10.23.11.255 

log level = 0
log file = /var/log/samba/samba.log
max log size = 50
syslog = 0

passdb backend = ldapsam:ldap://127.0.0.1
ldap suffix = ou=OxObjects,dc=abc,dc=com,dc=my
ldap admin dn = cn=sambaadmin,ou=OxObjects,dc=abc,dc=com,dc=my
ldap user suffix = ou=users
ldap group suffix = ou=groups
ldap machine suffix = ou=computers
ldap passwd sync = yes

add machine script = smbldap-useradd -w "%u"
#add user script = smbldap-useradd "%u"
add group script = smbldap-groupadd "%g"

delete user script = smbldap-userdel "%u"
delete group script = smbldap-groupdel "%g"

add user to group script = smbldap-groupmod -m "%u" "%g"
delete user from group script = smbldap-groupmod -x "%u" "%g"

set primary group script = smbldap-usermod -g "%g" "%u"

admin users  = root administrator @"Domain Admins"
guest ok = no

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

logon script = default.bat
logon drive =
logon path =
logon home =

#name resolve order = wins lmhosts bcast
#lm announce = yes
#browse list = yes

# printing 
printing = bsd
printcap name = /dev/null

#============================ Share Definitions ==============================
[homes]
     comment = Home Directories
     browseable = no
     writable = yes
     valid users = %S

[netlogon]
     comment = Network Logon Service
     path = /home/samba/netlogon
     guest ok = yes
     read only = no
     create mask = 0664
     directory mask = 0775
     write list = @"domain admins"
     force group = "domain admins"

[profiles] 
     path = /home/samba/profiles
     read only = no
     create mask = 0600
     directory mask = 0700
     nt acl support = yes
     browseable = No
     guest ok = Yes
     profile acls = yes
     csc policy = disable
     force user = %U
     valid users = %U "Domain Admins"

[regset]
     path = /home/samba/regset
     writeable = yes
     force user = root
     create mask = 0644
     hide dot files = no
     sync always = yes

[Public]
    path = /home/samba/smbshares/public
    comment = Public Shared Folder
    create mask = 0770
    directory mask = 2770
    force group = "Domain Admins"
    write list = @"Domain Admins"

[Applications]
    path = /home/samba/smbshares/applications
    comment = Application Sources
    create mask = 0770
    directory mask = 2770
    force group = "Domain Admins"
    write list = @"Domain Admins"

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Sudeep Sharma
Sudeep Sharma
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of psychic_zero

ASKER

Nscd and winbind service need to be installed and run