From 7d4ed899831a853ec2eef8dcd82d74fdbf568f0e Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Fri, 2 Mar 2012 16:18:16 +0200 Subject: 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 Autobuild-User: Andreas Schneider Autobuild-Date: Tue Mar 13 12:23:44 CET 2012 on sn-devel-104 --- source3/auth/proto.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/auth/proto.h') diff --git a/source3/auth/proto.h b/source3/auth/proto.h index 01e2934dc7..44ae9097a5 100644 --- a/source3/auth/proto.h +++ b/source3/auth/proto.h @@ -248,6 +248,7 @@ NTSTATUS make_server_info_wbcAuthUserInfo(TALLOC_CTX *mem_ctx, struct auth_serversupplied_info **server_info); void free_user_info(struct auth_usersupplied_info **user_info); bool is_trusted_domain(const char* dom_name); +NTSTATUS session_extract_session_key(const struct auth_session_info *session_info, DATA_BLOB *session_key, enum session_key_use_intent intent); /* The following definitions come from auth/user_info.c */ -- cgit