s3-rpc: Decrypt with the proper session key in CreateTrustedDomainEx2.
authorAlexander Bokovoy <ab@samba.org>
Fri, 2 Mar 2012 14:18:16 +0000 (16:18 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 13 Mar 2012 11:23:44 +0000 (12:23 +0100)
commit7d4ed899831a853ec2eef8dcd82d74fdbf568f0e
tree4ff03d559933f3b11ae4c96a3ad357ff4abcda89
parente25f830f1df323607999179e00a5a39197bf02ea
s3-rpc: Decrypt with the proper session key in CreateTrustedDomainEx2.

On LSA and SAMR pipes session_key is truncated to 16 byte when doing encryption/decryption.
However, this was not done for trusted domain-related modifying operations.

As result, Samba 4 client libraries do not work against Samba 3 while working
against Windows 2008 r2.

Solved this by introducing "session_extract_session_key()" function that allows to specify
intent of use of the key.

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Mar 13 12:23:44 CET 2012 on sn-devel-104
source3/auth/auth_util.c
source3/auth/proto.h
source3/include/auth.h
source3/rpc_server/lsa/srv_lsa_nt.c
source3/rpc_server/samr/srv_samr_nt.c