1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/rpc_server/samr
Alexander Bokovoy 7d4ed89983 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
2012-03-13 12:23:44 +01:00
..
srv_samr_chgpasswd.c s3-auth: rpc_server needs auth.h 2011-03-30 01:13:09 +02:00
srv_samr_nt.c s3-rpc: Decrypt with the proper session key in CreateTrustedDomainEx2. 2012-03-13 12:23:44 +01:00
srv_samr_util.c Fix bug #7054 - X account flag does not work when pwdlastset is 0. 2011-05-24 20:14:35 +02:00
srv_samr_util.h s3-passdb: use passdb headers where needed. 2011-03-30 01:13:08 +02:00