s3-winbindd Only use SamLogonEx when we can get unencrypted session keys
authorAndrew Bartlett <abartlet@samba.org>
Wed, 14 Dec 2011 23:00:36 +0000 (10:00 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 20 Mar 2012 20:36:03 +0000 (21:36 +0100)
commit8852ad6bd77b44e9dd71de3994869f5603964ef7
treedd7533d654e470205289959c08ae751321ae303f
parent28150366a958a3133dc8e418695b914f2ff3f472
s3-winbindd Only use SamLogonEx when we can get unencrypted session keys

This ensures that we have some check on the session keys being returned
as the RC4 cipher is not checksumed.

The check comes from the fact that the credentials chain is tied to
the session key, and so if the credentials check passes then the
netlogon session key will be correct, and so the user session key
will be correctly decrypted.

Andrew Bartlett

Part of a fix for bug #8599 (WINBINDD_PAM_AUTH_CRAP returns invalid user session
key).
source3/winbindd/winbindd_pam.c