ACB_ values exceed 16 bits, yet some working variables
explicitly declared as uint16
Andrew Bartlett
abartlet at samba.org
Wed Feb 22 09:31:06 GMT 2006
On Wed, 2006-02-22 at 10:06 +0100, Guenther Deschner wrote:
> Hi Luke,
>
> On Wed, Feb 22, 2006 at 10:59:35AM +1100, Luke Howard wrote:
> >
> > >> But those defined values can exceed 16 bits, for example:
> > >> include/smb.h:#define ACB_DONT_REQUIRE_PREAUTH 0x00010000 /* 1 =
> > >> Preauth not required */
> > >>
> > > That's odd, I would have expected valgrind to
> > >catch something like that, not just the Sun compilers...
> >
> > Can't this only to be caught a compile-time, though?
> >
> > BTW, where did the new ACB_ bits come from?
>
> There were identified by looking at the acct_flags in the Kerberos PAC
> info3.
Are they included in our mapping functions now?
> > What happened to ACB_PWLOCK
> > (seems to be same bit as ACB_ENCRYPTED_TEXT_PASSWORD_ALLOWED).
>
> IIRC, that one was defined by Samba-TNG (they use ACB_PWLOCK to handle the
> "User cannot change his password" feature).
I knew that defining new bits there felt dangerous...
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Student Network Administrator, Hawker College http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060222/e35cf48c/attachment.bin
More information about the samba-technical
mailing list