|
@@ -246,7 +246,7 @@ authenticate_user(UserName, Password) ->
|
|
|
{ok, UserDN} ->
|
|
|
Groups = get_group_memberships(LdapConnection, UserDN),
|
|
|
eldap:close(LdapConnection),
|
|
|
- {ok, [ ?l2b(G) || G <- Groups ]}
|
|
|
+ {ok, [ ?l2b(string:to_lower(G)) || G <- Groups ]}
|
|
|
end
|
|
|
end.
|
|
|
|
|
@@ -267,4 +267,4 @@ basic_name_pw(Req) ->
|
|
|
_ ->
|
|
|
?LOG_INFO("Could not recognize auth header ~p", [AuthorizationHeader]),
|
|
|
nil
|
|
|
- end.
|
|
|
+ end.
|