<div dir="ltr"><div>Hi list</div><div> </div><div>I am experimenting with eldap, but i am wondering on how to correctly get the result from an ldap search?</div><div> </div><div>In my module, i am doing an eldap:search</div>
<div> </div><div>-----------------</div><div>{ok, Result} = eldap:search(S, Search),</div><div>eldap:close(S),</div><div>io:format("Search Result: ~p~n", [Result]).<br>-----------------</div><div> </div><div>And i am getting following:</div>
<div> </div><div>-----------------</div><div>Search Result: {eldap_search_result,<br> [{eldap_entry,<br> "blaa,blaaa,blaa,blaa,blaa",<br> [{"status",["available"]}]}],<br>
[]}<br>ok</div><div>-----------------</div><div> </div><div>So far so good, eldap is doing it's work, but what i am really interrested in is just the content of the attribute status which is "available". How can i get the status into an variable? Do i need to get it from an record, or ?</div>
<div> </div><div>Thomas </div><div> </div></div>