summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-04-27 20:24:21 +0000
committerBadlop <badlop@process-one.net>2009-04-27 20:24:21 +0000
commitcabf128bbb2c495196b0fa3259b3aa0fb39700a8 (patch)
tree29a3e50c0760c188a7196473337830e070e104d0 /src
parent* src/jlib.erl: Fix recursive call to speedup base64 (diff)
* src/cyrsasl_digest.erl: Fix auth verification (EJAB-863)
SVN Revision: 2042
Diffstat (limited to 'src')
-rw-r--r--src/cyrsasl_digest.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cyrsasl_digest.erl b/src/cyrsasl_digest.erl
index 49ea6a6d..1cb2334a 100644
--- a/src/cyrsasl_digest.erl
+++ b/src/cyrsasl_digest.erl
@@ -57,7 +57,7 @@ mech_step(#state{step = 3, nonce = Nonce} = State, ClientIn) ->
{false, _} ->
{error, "not-authorized", UserName};
{Passwd, AuthModule} ->
- case (State#state.check_password)(UserName, Passwd,
+ case (State#state.check_password)(UserName, "",
xml:get_attr_s("response", KeyVals),
fun(PW) -> response(KeyVals, UserName, PW, Nonce, AuthzId,
"AUTHENTICATE") end) of
@@ -71,6 +71,8 @@ mech_step(#state{step = 3, nonce = Nonce} = State, ClientIn) ->
auth_module = AuthModule,
username = UserName,
authzid = AuthzId}};
+ false ->
+ {error, "not-authorized", UserName};
{false, _} ->
{error, "not-authorized", UserName}
end