54
54
%% Not tail-recursive, but it is not very terribly.
55
55
%% It stops finding on the first not empty value.
56
58
find_ldap_attrs([{Attr, Format} | Rest], Attributes) ->
58
60
Value when is_list(Value), Value /= "" ->
63
65
find_ldap_attrs([], _) ->
66
68
get_ldap_attr(LDAPAttr, Attributes) ->