vendredi 27 février 2015

Erlang: query more than 1000 LDAP elements using "eldap" library


I am using ejabberd, a jabber daemon written in Erlang. It is connected to our Active Directory using its LDAP interface and Erlang's eldap library.


Everything works so far with a small limitation causing a big problem:



  • A normal LDAP query receives up to 1000 elements and then stops.

  • We have more than 1000 employees and therefore receiver only a part of the whole query


Using *nix' ldapsearch tool, I can use the option -E pr=1000/noprompt for receiving multiple pages (which finally get concatenated to a single one) without any limitation.


How could I use this function using Erlang's eldap library? I already read through the source code, but don't seem to find anything obvious.





Aucun commentaire:

Enregistrer un commentaire