s3-winbindd Only use SamLogonEx when we can get unencrypted session keys
authorAndrew Bartlett <abartlet@samba.org>
Wed, 14 Dec 2011 22:57:56 +0000 (09:57 +1100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 20 Mar 2012 20:23:52 +0000 (21:23 +0100)
commitc119cd8868fc7e2eb08b09f7092519007fd83bf6
treec240a1c723ea47c5f41bf3ec9015a55a0c608221
parent81703ab7528055bbae8306d2c9a8314316107f85
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 netlgon 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

Signed-off-by: Matthieu Patou <mat@matws.net>
s3: If we can't do validation 6 or sam_logon_ex use sam_logon only
source3/winbindd/winbindd_pam.c