r23474: Here's a small patch that disables the libkrb5.so replay cache
authorGerald Carter <jerry@samba.org>
Wed, 13 Jun 2007 20:49:20 +0000 (20:49 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:19 +0000 (12:23 -0500)
commitcbd33da9f78373e29729325bbab1ae9040712b11
tree4ffd8de563167dbcf40cfc3da6e9528059dd5aa6
parent1f80f9d14553650fb9d24f1d4c36e5cf7986ce23
r23474: Here's a small patch that disables the libkrb5.so replay cache
when verifying a ticket from winbindd_pam.c.

I've found during multiple, fast, automated SSH logins (such
as from a cron script) that the replay cache in MIT's krb5
lib will occasionally fail the krb5_rd_req() as a replay attack.

There seems to be a small window during which the MIT krb5
libs could reproduce identical time stamps for ctime and cusec
in the authenticator since Unix systems only give back
milli-seconds rather than the micro-seconds needed by the
authenticator.  Checked against MIT 1.5.1.  Have not
researched how Heimdal does it.

My thinking is that if someone can spoof the KDC and TDS
services we are pretty hopeless anyways.
source/libads/kerberos_verify.c
source/nsswitch/winbindd_pam.c
source/smbd/sesssetup.c
source/utils/ntlm_auth.c