ACB_ values exceed 16 bits, yet some working variables explicitly declared as uint16

Stefan (metze) Metzmacher metze at samba.org
Wed Feb 22 07:41:42 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeremy Allison schrieb:
>> But those defined values can exceed 16 bits, for example:
>> include/smb.h:#define ACB_DONT_REQUIRE_PREAUTH 0x00010000  /* 1 =
>> Preauth not required */
> 
> Hmmm. Yep, that's the only flag > 16 bits, but it isn't referred
> to in any of the source code yet (only in a header). The constants
> for these are defined as 0x<32 bit value> though. What compiler
> are you using ? This passes gcc.

the ACB bits are 32Bit on the wire, see samr.idl "bitmap samr_AcctFlags".

I never understood why we use only 16 bits in samba3...



- --
metze

Stefan Metzmacher <metze at samba.org> www.samba.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD/BWym70gjA5TCD8RAks4AKDOLyvBucnh1TaIG+Tt1ItEkLpOTACeMsXd
pemKebnCEJlrYBsKyU3i0YI=
=4zT2
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list