[Samba] script in netlogon isn't run

Patrick DUBAU patrick.dubau at alsace.iufm.fr
Thu Oct 14 13:10:58 GMT 2004


i have samba 3.0.7 and set a logon.bat script in /home/samba/netlogon
But when i log in my domaine (from a windows xp sp1 machine) "Domi" the 
script isn't run, no error  message   at log in
Just going on the share "netlogon" i got the sand-hour and nothing more 

What's wrong ?
Thanks for any help

*here my smb.conf *
# Do something sensible when Samba crashes: mail the admin a backtrace
netbios name = FS1
workgroup = DOMI
security = user
encrypt passwords = yes
#admin users= @"Domain Admins"

#host allow=

#domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
domain logons = Yes
logon script=logon.bat

log file = /var/log/samba/%m.log
log level = 5
max log size = 5000

add machine script = /usr/local/sbin/smbldap-useradd -w %u
add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u
#add user script = /usr/local/sbin/smbldap-useradd -m "%u"
#add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
#add user to group script = /usr/local/sbin/smbldap-groupmod -m "%u" "%g"
#delete user from group script = /usr/local/sbin/smbldap-groupmod -x 
"%u" "%g"
#set primary group script = /usr/local/sbin/smbldap-usermod -g "%g" "%u"
#delete user script = /usr/local/sbin/smbldap-userdel "%u"
#delete group script = /usr/local/sbin/smbldap-groupdel "%g"

obey pam restrictions = Yes
#********************** Pour LDAP 
passdb backend = ldapsam:ldap://
ldap suffix = dc=alsace,dc=iufm,dc=fr
ldap admin dn = "cn=admin,dc=alsace,dc=iufm,dc=fr"
ldap ssl=no
ldap user suffix = ou=People
ldap machine suffix = ou=Computers
ldap group suffix = ou=Groups
#ldap idmap suffix = ou=Users
# d'après http://cj.tronquet.free.fr/doc/samba3ldap.php et idealx p.17 
ldap passwd sync = Yes

comment = commun aux profs et étudiants
volume = commun 
path = /home/samba/commun
guest ok=yes
read only = no
writeable = yes
#pas de partage visible dans vosinage réseau
browseable = no

comment = fichiers du service comptable
path = /home/samba/fichiers/compta
public = yes
writeable = yes
read only = no
create mask = 0750
valid users = @compta
# le groupe superviseur a tous les droits sur ce partage
admin users = @superviseur

comment = accès à prothee
public = yes
writeable = yes
read only = no
create mask = 0750
valid users = "prothee"
admin users = @superviseur

comment = Network Logon Service
path = /home/samba/netlogon
guest ok = yes
writable = no
share modes = no

*here my logon..bat file * (i did as simple as possible..)
net use j: \\FS1\netlogon
net use k: \\FS1\commun

More information about the samba mailing list