mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
WIP
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
71f50b35b6
commit
719abcbb04
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ defmodule Mobilizon.Service.Auth.LDAPAuthenticator do
|
||||||
@spec search_filter(String.t(), String.t()) :: any()
|
@spec search_filter(String.t(), String.t()) :: any()
|
||||||
defp search_filter(email, group) when is_binary(group) do
|
defp search_filter(email, group) when is_binary(group) do
|
||||||
:eldap.and([
|
:eldap.and([
|
||||||
:eldap.equalityMatch('mail', to_charlist(email)),
|
search_filter(email, false),
|
||||||
:eldap.equalityMatch('memberOf', to_charlist(group))
|
:eldap.equalityMatch('memberOf', to_charlist(group))
|
||||||
])
|
])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue