diff --git a/src/ldap_auth.erl b/src/ldap_auth.erl index 4db1455..1251cdd 100644 --- a/src/ldap_auth.erl +++ b/src/ldap_auth.erl @@ -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. \ No newline at end of file + end.