Bug 5627 - logon scripts are not being executed by Windows XP
logon scripts are not being executed by Windows XP
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Domain Control
x64 Windows XP
: P3 major
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2008-07-23 09:54 UTC by Adam Williams
Modified: 2009-04-04 08:02 UTC (History)
0 users

See Also:

output of tcpdump -s 0 -w /tmp/dump.pcap host while logging in from to the PDC (166.31 KB, application/octet-stream)
2008-08-26 11:50 UTC, Adam Williams
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Williams 2008-07-23 09:54:33 UTC
I'm running samba 3.0.31 on Fedora Core 8 x64 that compiled using samba-3.0.31/packaging/RHEL/makerpms.sh.  logon scripts are not being loaded automatically.  As an example I created a user jdoe and his LDAP info has:

sambaProfilePath: \\roark\profiles\jdoe
sambaHomePath: \\roark\jdoe
sambaLogonScript: scripts\jdoe.bat
sambaHomeDrive: R:

and when I log in as him, using a Windows XP Pro SP3 computer, he gets R:, but his jdoe.bat isn't ran which is:

net use s: \\\share /yes
net use m: \\arrowhead\hppictures /yes
net use p: \\arrowhead\public /yes
net use v: \\arrowhead\archist /yes

when you look in "my computer" he's not shared any of those drives.  However, if i click start, run, and type in \\roark\netlogon\scripts\jdoe.bat the script runs fine and he is shared those drives and now they show up in "My Computer".

At the URL above ( http://www.mdah.state.ms.us/samba/samba.zip ) it is a zip file containing jdoe and jdoe$ LDAP info, my smb.conf created with testparm, and a log level 10 output from when I joined jdoe$ to the domain, logged in as him, saw that he didn't have his netlogon script ran, and logged out as him.  I did not manually run \\roark\netlogon\scripts\jdoe.bat as him but know it works for all other users and I've had to place a shortcut to their login script in their startup folder as a work around.  I can provide a log level 10 of running \\roark\netlogon\scripts\jdoe.bat if needed.
Comment 1 Gerald (Jerry) Carter 2008-08-26 11:07:28 UTC
Adam,  I don't actually see a Sam Logon request in this log file which would explain
why the logon script is not being run.  Seems the client is using cached information.
But neither do I see a net_auth() call either.  Can you upload a raw tcpdump
taken from the Samba DC?  

  $  tcpdump -s 0 -w /tmp/dump.pcap host <client IP addr>
Comment 2 Adam Williams 2008-08-26 11:50:01 UTC
Created attachment 3507 [details]
output of tcpdump -s 0 -w /tmp/dump.pcap host while logging in from to the PDC

attached is the output of tcpdump -s 0 -w /tmp/dump.pcap host on the PDC while logging in as jdoe from which is a Windows XP SP3 computer.  \\roark\netlogon\scripts\jdoe.bat is not being ran