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 =====================================

workgroup = PDCSVR
interfaces = lo eth0

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

remote announce = 
remote browse sync = 

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

passdb backend = ldapsam:ldap://
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 ==============================
     comment = Home Directories
     browseable = no
     writable = yes
     valid users = %S

     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"

     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"

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

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

    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

Who is Participating?
Sudeep SharmaConnect With a Mentor Technical DesignerCommented:
Hello psychic_zero,

Could you please check the permission on the files that you have copied from the old server. Also do you see anything in the logs related to Samba?

psychic_zeroAuthor Commented:
Nscd and winbind service need to be installed and run
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.