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

Guenther Deschner gd at samba.org
Wed Feb 22 09:06:56 GMT 2006


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.

> 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).

> Are there ACB bits for the new Windows 2003 bits?

Not sure if I understand this question...


Guenther
-- 
Günther Deschner                    GPG-ID: 8EE11688
Novell / SUSE LINUX                       gd at suse.de
Samba Team                              gd at samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060222/ec082fbc/attachment.bin


More information about the samba-technical mailing list