/ Published in: Java
UnboundID LDAP SDK
Expand |
Embed | Plain Text
public class Main { /** * @param args * @throws LDAPException */ LDAPConnection connection = new LDAPConnection("192.168.9.164", 1389, "cn=admin4directory,dc=ilex-si,dc=eu", "M3d2p5a4!"); SearchRequest searchRequest = new SearchRequest("ou=people,dc=ilex-si,dc=eu", SearchScope.SUB,"(ixuid=*)"); ASN1OctetString cookie = null; do { searchRequest.setControls( // Do something with the entries that are returned. cookie = null; { if (c instanceof SimplePagedResultsControl) { cookie = ((SimplePagedResultsControl) c).getCookie(); } } } while ((cookie != null) && (cookie.getValueLength() > 0)); connection.close(); } }
You need to login to post a comment.
