ManageDsaIT

Request that the server return referrals as regular entries. See RFC 3296.

SearchOperation search = new SearchOperation(new DefaultConnectionFactory("ldap://directory.ldaptive.org"));
SearchRequest request = SearchRequest.builder()
  .dn("dc=ldaptive,dc=org")
  .filter("(givenName=d*)")
  .returnAttributes("cn", "sn")
  .controls(new ManageDsaITControl())
  .build();
SearchResponse res = search.execute(request);
for (LdapEntry entry : res.getEntries()) {
  // do something useful with the entry
}