View | Details | Raw Unified | Return to bug 16485
Collapse All | Expand All

(-)mod_shared_roster_ldap.erl.orig (-2 / +3 lines)
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;

Return to bug 16485