Don't process failed EXTERNAL authentication by mod_fail2ban

This will only lead to confusion because it's not considered
possible to brute force client certificates.
This commit is contained in:
Evgeny Khramtsov 2019-05-15 18:13:31 +03:00
parent 3c95764d1a
commit a4c3ea0dfb
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,9 @@
%%%===================================================================
-spec c2s_auth_result(ejabberd_c2s:state(), true | {false, binary()}, binary())
-> ejabberd_c2s:state() | {stop, ejabberd_c2s:state()}.
c2s_auth_result(#{sasl_mech := Mech} = State, {false, _}, _User)
when Mech == <<"EXTERNAL">> ->
State;
c2s_auth_result(#{ip := {Addr, _}, lserver := LServer} = State, {false, _}, _User) ->
case is_whitelisted(LServer, Addr) of
true ->