winbindd 32/64 offset issues
Gerald (Jerry) Carter
jerry at samba.org
Wed Jun 27 19:17:28 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Jim McDonough wrote:
> Despite your comments about testing with 32bit libs on 64bit platforms
> in the winbindd_request struct in winbindd_nss.h, it seems we're out of
> sync, and the following comment may be part of the issue:
> /* Have to deal with time_t being 4 or 8 bytes due to structure alignment.
> On a 64bit Linux box, we have to support a constant structure size
> between /lib/libnss_winbind.so.2 and /li64/libnss_winbind.so.2.
> The easiest way to do this is to always use 8byte values for time_t. */
> I can say that I've recently found this to not be true.
> The only solution I found was the old method that hasn't been updated in
> the code in a while...the padding member of the huge data union needs to
> be set to that 8-byte boundary, ...
> Or we could just start up that marshalling discussion again :-)
We have to do the marshalling to maintain this long term.
> In any case, before I check anything in, can someone run
> any quick tests of your various binaries on 64-bit platforms
> using 32-bit winbind libs?
The test is simple. Do one build normally and then build wbinfo
from a second tree using -m32 and all the various calls from
the 32bit client should work against the 64bit winbindd.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the samba-technical