aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_auth_ldap.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2011-08-16 00:25:03 +0200
committerBadlop <badlop@process-one.net>2011-08-16 00:25:03 +0200
commite80b92b48148505b44c6a378db36badfe60fce79 (patch)
treef98bd3590dacac66988fb806c06d1147b49aec57 /src/ejabberd_auth_ldap.erl
parenthandle case when roster version on DB is enabled but version is not found. (diff)
Preliminary patch for SASL SCRAM-SHA-1 (thanks to Stephen Röttger)(EJAB-1196)
Diffstat (limited to 'src/ejabberd_auth_ldap.erl')
-rw-r--r--src/ejabberd_auth_ldap.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ejabberd_auth_ldap.erl b/src/ejabberd_auth_ldap.erl
index 88486f175..da928599b 100644
--- a/src/ejabberd_auth_ldap.erl
+++ b/src/ejabberd_auth_ldap.erl
@@ -54,6 +54,7 @@
is_user_exists/2,
remove_user/2,
remove_user/3,
+ storage_type/0,
plain_password_required/0
]).
@@ -137,6 +138,9 @@ init(Host) ->
plain_password_required() ->
true.
+storage_type() ->
+ external.
+
check_password(User, Server, Password) ->
%% In LDAP spec: empty password means anonymous authentication.
%% As ejabberd is providing other anonymous authentication mechanisms