TNG works with Win2k, fails with Win98
Luke Kenneth Casson Leighton
lkcl at samba.org
Mon Feb 21 22:05:14 GMT 2000
ah. yes. see andrew's post to samba-technical regarding the development
and use of talloc, for details.
On Tue, 22 Feb 2000, Patrick J. LoPresti wrote:
> Richard Sharpe <sharpe at ns.aus.com> writes:
>
> > >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 ...
>
> Slightly different copies of the CVS tree, perhaps? Or different
> authentication mechanisms? (I am using smbpasswd.)
>
> My changes are pretty simple, and I swear they *do* fix my problem.
> Before my patch, I was seeing empty strings for the logon script, the
> home share, and so forth.
>
> Digging a little deeper, the function pwdb_smb_to_sam() in sampassdb.c
> uses a bunch of unititialized local static variables (home_dir,
> home_drive, logon_script, etc.) These locals are arrays of char,
> which is where my empty strings were coming from; see the call to
> pwdb_smb_to_sam() in getsamfile21pwent().
>
> (I just double-checked all this with a freshly-checked-out copy of
> TNG.)
>
> What's up with those unitialized static char arrays? They are
> guaranteed to be zero, but there are better ways to get the various
> pw_buf fields set to empty strings if that is the goal...
>
> - Pat
>
<a href=" mailto:lkcl at samba.org" > Luke Kenneth Casson Leighton </a>
<a href=" http://cb1.com/~lkcl" > Samba and Network Development </a>
<a href=" http://samba.org" > Samba Web site </a>
<a href=" http://www.iss.net" > Internet Security Systems, Inc. </a>
<a href=" http://mcp.com" > Macmillan Technical Publishing </a>
ISBN1578701503 DCE/RPC over SMB: Samba and Windows NT Domain Internals
More information about the samba-ntdom
mailing list