Bug 5627 - logon scripts are not being executed by Windows XP
Summary: logon scripts are not being executed by Windows XP
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Domain Control (show other bugs)
Version: 3.0.31
Hardware: x64 Windows XP
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL: http://www.mdah.state.ms.us/samba/sam...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-23 09:54 UTC by Adam Williams
Modified: 2020-10-03 23:06 UTC (History)
0 users

See Also:


Attachments
output of tcpdump -s 0 -w /tmp/dump.pcap host 10.8.3.136 while logging in from 10.8.3.136 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: \\10.8.16.2\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 (dead mail address) 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 10.8.3.136 while logging in from 10.8.3.136 to the PDC

attached is the output of tcpdump -s 0 -w /tmp/dump.pcap host 10.8.3.136 on the PDC while logging in as jdoe from 10.8.3.136 which is a Windows XP SP3 computer.  \\roark\netlogon\scripts\jdoe.bat is not being ran
Comment 3 Björn Jacke 2020-10-03 23:06:47 UTC
this works well in recent versions