From 88ed82644a4b2cbe122dea3fbabb7b2fdf9a2748 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Sat, 1 Nov 2008 20:11:16 +0100 Subject: BUGFIX: Fixed wrong attempt count reset during eurephia_tlsverify(...) The attempt counter for certificates was reset too early. It was reset on successful TLS verification. But the only place these counters should be reset is after successful authentication in eurephia_userauth(...) --- plugin/eurephia.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'plugin/eurephia.c') diff --git a/plugin/eurephia.c b/plugin/eurephia.c index 0e8e39c..78b8d7a 100644 --- a/plugin/eurephia.c +++ b/plugin/eurephia.c @@ -287,9 +287,6 @@ int eurephia_tlsverify(eurephiaCTX *ctx, const char **env, const char *depth) eurephia_log(ctx, LOG_INFO, (depth == 0 ? 0 : 1), "Found certid %i for user: %s/%s/%s", result, ci->org, ci->common_name, ci->email); - - // Reset attempt counter for certificate if it is okey - eDBregister_attempt(ctx, attempt_CERTIFICATE, ATTEMPT_RESET, tls_digest); } else { eurephia_log(ctx, LOG_WARNING, 0, "Unknown certificate for: %s/%s/%s (depth %s, digest: %s)", -- cgit