mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-02 21:17:12 +02:00
Do not crash SIP authentication on SCRAMed passwords
This commit is contained in:
parent
dfe3082445
commit
f377992232
|
@ -263,8 +263,12 @@ check_auth(#sip{method = Method, hdrs = Hdrs, body = Body}, AuthHdr, _SIPSock) -
|
||||||
case ejabberd_auth:get_password_s(LUser, LServer) of
|
case ejabberd_auth:get_password_s(LUser, LServer) of
|
||||||
<<"">> ->
|
<<"">> ->
|
||||||
false;
|
false;
|
||||||
Password ->
|
Password when is_binary(Password) ->
|
||||||
esip:check_auth(Auth, Method, Body, Password)
|
esip:check_auth(Auth, Method, Body, Password);
|
||||||
|
_ScramedPassword ->
|
||||||
|
?ERROR_MSG("unable to authenticate ~s@~s against SCRAM'ed "
|
||||||
|
"password", [LUser, LServer]),
|
||||||
|
false
|
||||||
end;
|
end;
|
||||||
[] ->
|
[] ->
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in New Issue
Block a user