[Samba] Cannot Map drive from XP to Samba shared folder

Samantha samanthahk at gmail.com
Sat May 5 15:17:06 GMT 2007


Dear Sirs,

I have a Samba server with LDAP (in Fedora Core 4) and numbers of XP
client in a domain. After client login to domain, it runs a logon
script to map drive. Each client has own home directory in samba
server. Sometimes some of clients cannot map the drive to shared
folder in samba server after they login (At the same time, Some
clients can map the drive successfully)


My Samba version: 3.0.14a

smb.conf:

# Global parameters

[global]
unix charset = big5
dos charset= big5
  workgroup = GROUP1
netbios name = Server1
log level = 2
syslog = 0
log file = /var/log/samba/%m
max log size = 50
name resolve order = wins bcast hosts
time server = no
#printcap name = CUPS
#show add printer wizard = No
interfaces = eth2, lo
bind interfaces only = yes
passdb backend = ldapsam:ldap://127.0.0.1
add user script = /usr/local/sbin/smbldap- useradd.pl -a -m '%u'
delete user script = /usr/local/sbin/smbldap-userdel.pl '%u'
add group script = /usr/local/sbin/smbldap-groupadd.pl -p '%g'
delete group script = /usr/local/sbin/smbldap- groupdel.pl '%g'
add user to group script = /usr/local/sbin/smbldap-groupmod.pl -m '%u' '%g'
delete user from group script = /usr/local/sbin/smbldap-groupmod.pl -x '%u' '%g'
#set primary group script = /usr/local/sbin/smbldap-usermod.pl -g '%g' '%u'
add machine script = /usr/local/sbin/smbldap-useradd.pl -w '%u'
logon script = scripts\%U.bat
logon path = \\%L\profiles\%U
logon drive = X:
logon home = \\%L\%U
domain logons = Yes
preferred master = Yes
ldap suffix = dc=GROUP1,dc=net
ldap machine suffix = ou=People
ldap user suffix = ou=People
ldap group suffix = ou=Groups
wins support = Yes
ldap idmap suffix = ou=Idmap
ldap admin dn = cn=Manager,dc=GROUP1,dc=net
idmap backend = ldap:ldap://127.0.0.1
  idmap uid = 10000-20000
  idmap gid = 10000-20000
map acl inherit = Yes

  security = user
  template shell = /bin/false
  winbind use default domain = no
  ldap passwd sync = Yes
  deadtime=15

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
guest ok = Yes
locking = No
browseable = No

[profiles]
comment = Profile Share
path = /var/lib/samba/profiles
writable = yes
create mask = 0600
directory mask = 0700
browseable = no
read only = No
profile acls = Yes

[Shared]
path = /Shared
writeable = no
valid users = @domain_administrators, @domain_users
browseable = no
read only = yes



The logon script:

net use y: /delete
net use y: \\Server1\Shared /persistent:no



In XP client, type "net use y: \\Server1\Shared /persistnet:no", it
prompts something like "Network Path was not found"



I'd be grateful if anyone knows what the problem is or has any ideas
how to solve such problem.

Thanks,
Samantha


More information about the samba mailing list