[Samba] Netlogon script executes randomly

Frode Lillerud frode at lillerud.no
Thu Mar 25 21:13:02 GMT 2004


Hi, I have set up Samba 3.0.2a on my Debian server as a PDC.
 
I use a Windows XP Pro laptop to log on wirelessly, and things seems to
be working fine except with the logon.bat script.
 
I have added "logon script = logon.bat" and the netlogon share in my
smb.conf.
 
The logon.bat has executed a few times (perhaps 10% of the times), but
there is obviously a problem. The logon.bat is created with DOS style
CR/LF.
 
Anyone know what could be wrong?
 
My smb.conf file:
 
# Setting up Samba 3.0 as a Primary Domain Controller
 
[global]
    # Server settings
    netbios name = sauroman
    workgroup = ISENGARD
    server string = Testing PDC
    security = user
#   guest account = smbguest
    encrypt passwords = yes
 
    # PDC settings
    domain logons = yes
    logon script = newlog.bat
 
    # Browser and WINS settings
    domain master = yes
    local master = yes
    preferred master = yes
    os level = 255
    wins support = yes
 
    # Other services
    time server = yes
 
    # Debugging and Logging
    log level = 1
    log file = /tmp/samba_%m.log
    max log size = 1000 #1MB
    debug timestamp = yes
    syslog = 1
 
[netlogon]
    path = /var/lib/samba/netlogon
    browseable = yes
    writable = yes # set this to no again!
 
#[profiles]
#   path = /var/lib/samba/profiles
#   read only = no
#   create mask = 0600
#   directory mask = 0700
 
[homes]
    comment = Home for %u
    writeable = yes
    browseable = no
;   map archive = yes   ;?


More information about the samba mailing list