[erlang-questions] Question about eldap - substring filter
Matthew Simarmata
matthew.simarmata@REDACTED
Fri Jul 19 20:54:15 CEST 2013
Hi,
I made following eldap search
eldap:search(S, [Base, Scope, {filter, eldap:equalityMatch("uid",
"matthew")}]).
and got below result:
{ok,{eldap_search_result,
[{eldap_entry,
"uid=matthew,ou=Support,ou=People,dc=maxcrc,dc=com",
[{"objectClass",["posixAccount","top","inetOrgPerson"]},
{"gidNumber",["0"]},
{"givenName",["matthew"]},
{"sn",["Simarmata"]},
{"displayName",["matthew Simarmata"]},
{"uid",["matthew"]},
{"homeDirectory",["/home/matthew"]},
{"loginShell",["matthew"]},
{"cn",["matthew Simarmata"]},
{"uidNumber",["64152"]}]}],
[]}}
I want to filter based on substring on 'homeDirectory', and submit
following eldap search:
eldap:search(S, [Base, Scope, {filter, eldap:substrings("homeDirectory",
[{any,"matthew"}])}, {attributes, ["homeDirectory"]}]).
However I got empty result.
I need help please?
Thanks,
MS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130719/3c1571e0/attachment.htm>
More information about the erlang-questions
mailing list