[Patch] Make samba4 return a correct Supported Encryption

Andrew Bartlett abartlet at samba.org
Mon Sep 7 16:26:25 MDT 2009


On Mon, 2009-09-07 at 23:40 +0400, Matthieu Patou wrote:
> On 09/07/2009 04:51 PM, Stefan (metze) Metzmacher wrote:
> > Hi Matthieu,
> >
> >    
> >> Please Find attached a patch that allow S4 to return correctly the
> >> SupportedEncryption in the getDomainInfo RPC.
> >>
> >> This patch make the assumption that by default if the
> >> msDS-SupportedEncryptionTypes is not populated then the workstation
> >> support all the encryption up to RC4 (same assumption as Windows 2008
> >> and upper do).
> >>      
> > Can you resend the patch using:
> > - tab indentation
> > - using the same type 'uint32_t' in all places,
> >    currently you're mixing uint32_t, int and samdb_search_int64()
> >
> > Thanks!
> > metze
> >
> >    
> Hi metze,
> Sorry for the tabs, about 32/64 I didn't find the samdb_search_int32 
> function and I've seen in the code of samba4 that it's done like this 
> (ie. samdb_result_force_password_change in dsdb/common/util.c).
> Maybe it will be more cleaner to create a samdb_search_int32() ?
> 
> In any case here is the updated patch I also attached a variant just 
> with 64 bit ints ...

We need to avoid magic things like 0xf in the code.  Can you a bitmap of
constants to the netlogon.idl and use them?

Thanks,

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com
-------------- 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/pipermail/samba-technical/attachments/20090908/88a42d20/attachment.pgp>


More information about the samba-technical mailing list