s3-winbind: Fix Bug #7568: Make sure cm_connect_lsa_tcp does not reset the secure...
commitaefad86f512c035d75190031f31eca30df2b4736
authorGünther Deschner <gd@samba.org>
Mon, 9 Aug 2010 12:31:24 +0000 (9 14:31 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 27 Sep 2010 19:28:58 +0000 (27 21:28 +0200)
treef90e771064b39c865325208ceab1a42bf4015990
parent0f90a359b68faa93d07c4115d2a5f8494f330ba6
s3-winbind: Fix Bug #7568: Make sure cm_connect_lsa_tcp does not reset the secure channel.

This is an important fix as the following could and is happening:

* winbind authenticates a user via schannel secured netlogon samlogonex call,
current secure channel cred state is stored in winbind state, winbind
sucessfully decrypts session key from the info3

* winbind sets up a new schannel ncacn_ip_tcp lsa pipe (and thereby resets the
secure channel on the dc)

* subsequent samlogonex calls use the new secure channel creds on the dc to
encrypt info3 session key, while winbind tries to use old schannel creds for
decryption

Guenther
(cherry picked from commit be396411a4e1f3a174f8a44b6c062d834135e70a)
(cherry picked from commit afe0e73b7bb640428396c9f40dbbcba5c311fcd9)
(cherry picked from commit 179399401ccae7ae2579b94420d0386531ad2686)
source3/winbindd/winbindd_cm.c