From 79650e86fd52979a671df40c33843f77b33ab3a4 Mon Sep 17 00:00:00 2001 From: Matt Schatz Date: Thu, 9 Apr 2020 06:55:57 -0600 Subject: Send SNOTICES for failed secure only or fingerprint oper attempts. --- src/modules/m_sslinfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index f0bfbb424..345902e1e 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -257,6 +257,7 @@ class ModuleSSLInfo { user->WriteNumeric(ERR_NOOPERHOST, "This oper login requires an SSL connection."); user->CommandFloodPenalty += 10000; + ServerInstance->SNO->WriteGlobalSno('o', "WARNING! Failed oper attempt by %s using login '%s': secure connection required.", user->GetFullRealHost().c_str(), parameters[0].c_str()); return MOD_RES_DENY; } @@ -265,6 +266,7 @@ class ModuleSSLInfo { user->WriteNumeric(ERR_NOOPERHOST, "This oper login requires a matching SSL certificate fingerprint."); user->CommandFloodPenalty += 10000; + ServerInstance->SNO->WriteGlobalSno('o', "WARNING! Failed oper attempt by %s using login '%s': client certificate fingerprint does not match.", user->GetFullRealHost().c_str(), parameters[0].c_str()); return MOD_RES_DENY; } } -- cgit v1.2.3