Lines 371-377
Link Here
|
371 |
case Attrs of |
371 |
case Attrs of |
372 |
[{UIDAttr, UsersList}] -> |
372 |
[{UIDAttr, UsersList}] -> |
373 |
lists:foldl(fun(User, Acc) -> |
373 |
lists:foldl(fun(User, Acc) -> |
374 |
case catch get_user_part(User, UAF) of |
374 |
case catch get_user_part(stringprep:tolower(User), UAF) of |
375 |
{ok, U} -> |
375 |
{ok, U} -> |
376 |
case ejabberd_auth:is_user_exists(U, Host) of |
376 |
case ejabberd_auth:is_user_exists(U, Host) of |
377 |
true -> [{U, Host} | Acc]; |
377 |
true -> [{U, Host} | Acc]; |
Lines 490-496
Link Here
|
490 |
end, |
490 |
end, |
491 |
|
491 |
|
492 |
SubFilter = "(&("++UIDAttr++"="++UIDAttrFormat++")("++GroupAttr++"=%g))", |
492 |
SubFilter = "(&("++UIDAttr++"="++UIDAttrFormat++")("++GroupAttr++"=%g))", |
493 |
UserSubFilter = eldap_filter:do_sub(SubFilter, [{"%g", "*"}]), |
493 |
SubFilter1 = "(&(uid="++UIDAttrFormat++")("++GroupAttr++"=%g))", |
|
|
494 |
UserSubFilter = eldap_filter:do_sub(SubFilter1, [{"%g", "*"}]), |
494 |
GroupSubFilter = eldap_filter:do_sub(SubFilter, [{"%u", "*"}]), |
495 |
GroupSubFilter = eldap_filter:do_sub(SubFilter, [{"%u", "*"}]), |
495 |
Filter = case ConfigFilter of |
496 |
Filter = case ConfigFilter of |
496 |
undefined -> SubFilter; |
497 |
undefined -> SubFilter; |