diff options
author | Matt Schatz <genius3000@g3k.solutions> | 2020-04-09 06:55:57 -0600 |
---|---|---|
committer | Matt Schatz <genius3000@g3k.solutions> | 2020-04-09 06:57:36 -0600 |
commit | 79650e86fd52979a671df40c33843f77b33ab3a4 (patch) | |
tree | 10245db4ceea9ce4a28f06778f3dfcf4626e98f8 /src/modules | |
parent | 2ec69dcc736f395bdbcf8e9e0ee5bc179d48eff7 (diff) |
Send SNOTICES for failed secure only or fingerprint oper attempts.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_sslinfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } |