aboutsummaryrefslogtreecommitdiff
path: root/src/cyrsasl_anonymous.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2008-04-22 17:41:30 +0000
committerBadlop <badlop@process-one.net>2008-04-22 17:41:30 +0000
commit96f0c001d9b11f98c842f463537d0056d2ce5acf (patch)
tree4f5c2908f828cc38ad68044e353a93f7c3dd9ca2 /src/cyrsasl_anonymous.erl
parent* src/ejabberd_s2s_out.erl: Fix long timeout when reconnecting s2s (diff)
* src/ejabberd_auth.erl: Improve anonymous authentication to not
remove rosters accidentally (EJAB-549). New functions in ejabberd_auth to get/check password and know which module accepted the authentication. New element 'auth_module' in ejabberd_c2s record 'statedata'. Cyrsasl provides a new property in the response: {auth_module, AuthModule}. * src/ejabberd_auth_anonymous.erl: Likewise * src/ejabberd_c2s.erl: Likewise * src/cyrsasl_anonymous.erl: Likewise * src/cyrsasl_digest.erl: Likewise * src/cyrsasl_plain.erl: Likewise SVN Revision: 1297
Diffstat (limited to 'src/cyrsasl_anonymous.erl')
-rw-r--r--src/cyrsasl_anonymous.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cyrsasl_anonymous.erl b/src/cyrsasl_anonymous.erl
index 7393685d8..b9cf7449c 100644
--- a/src/cyrsasl_anonymous.erl
+++ b/src/cyrsasl_anonymous.erl
@@ -51,5 +51,6 @@ mech_step(State, _ClientIn) ->
%% Checks that the username is available
case ejabberd_auth:is_user_exists(User, Server) of
true -> {error, "not-authorized"};
- false -> {ok, [{username, User}]}
+ false -> {ok, [{username, User},
+ {auth_module, ejabberd_auth_anonymous}]}
end.