TNG works with Win2k, fails with Win98

Richard Sharpe sharpe at ns.aus.com
Mon Feb 21 05:12:11 GMT 2000


At 07:00 AM 2/22/00 +1100, Patrick J. LoPresti wrote:
>Luke Kenneth Casson Leighton <lkcl at samba.org> writes:
>
>> > Second, my netlogon script is not running for Win98 nor for Win2k (is
>> > it even supposed to for the latter?).
>> 
>> *ah*.  that.  see, we have a real problem, there.  netlogin scripts
>> were added as a hack to the nt domain code.
>> 
>> hmmm...  let me take a look-see
>
>I think I found the bug.  In sampass.c:getsamfile21pwent(), you are
>checking a bunch of char *'s in the "user" structure against NULL to
>see if you need to fill them in.  The problem is that they aren't
>NULL, they are just empty; so things like the logon_script field end
>up empty instead of acquiring their proper values from the smb.conf
>file.
>
>When I fixed this, my logon scripts started working again.
>
>My patch is appended; rewrite it as you see fit...

Hmmm, that is interesting, because logon scripts worked for me in an all
Samba-TNG after I fixed the auth problem ...

> - Pat
>
>
>Attachment Converted: "c:\eudora\attach\sampass.c.diff"
>

Regards
-------
Richard Sharpe, sharpe at ns.aus.com, Master Linux Administrator :-),
Samba (Team member, www.samba.org), Ethereal (Team member, www.zing.org)
Co-author, SAMS Teach Yourself Samba in 24 Hours
Author: First Australian 5-day, intensive, hands-on Linux SysAdmin course
Author: First Australian 2-day, intensive, hands-on Samba course



More information about the samba-ntdom mailing list