Skip to content

Commit 6f9f4b3

Browse files
committed
Fix issues with ldap authentication
1 parent 968fbc9 commit 6f9f4b3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ejabberd_auth.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,8 @@ db_get_password(User, Server, Mod) ->
767767
case ets_cache:lookup(cache_tab(Mod), {User, Server}) of
768768
{ok, exists} -> error;
769769
not_found -> error;
770-
Other -> Other
770+
{ok, List} = V when is_list(List) -> V;
771+
{ok, Single} -> {ok, [Single]};
771772
end;
772773
false ->
773774
error;

0 commit comments

Comments
 (0)