/** * Performs the ldap search. * * @param request to invoke search with * * @return ldap response * * @throws LdapException if an error occurs */ protected Response<SearchResult> executeSearch(final SearchRequest request) throws LdapException { final SearchIterator si = getConnection().getProviderConnection().search(request); final SearchResult result = readResult(request, si); final Response<Void> response = si.getResponse(); return new Response<>( result, response.getResultCode(), response.getMessage(), response.getMatchedDn(), response.getControls(), response.getReferralURLs(), response.getMessageId()); }
/** * Performs the ldap search. * * @param request to invoke search with * * @return ldap response * * @throws LdapException if an error occurs */ protected Response<SearchResult> executeSearch(final SearchRequest request) throws LdapException { final SearchIterator si = getConnection().getProviderConnection().search(request); final SearchResult result = readResult(request, si); final Response<Void> response = si.getResponse(); return new Response<>( result, response.getResultCode(), response.getMessage(), response.getMatchedDn(), response.getControls(), response.getReferralURLs(), response.getMessageId()); }
/** * Performs the ldap search. * * @param request to invoke search with * * @return ldap response * * @throws LdapException if an error occurs */ protected Response<SearchResult> executeSearch(final SearchRequest request) throws LdapException { final SearchIterator si = getConnection().getProviderConnection().search(request); final SearchResult result = readResult(request, si); final Response<Void> response = si.getResponse(); return new Response<>( result, response.getResultCode(), response.getMessage(), response.getMatchedDn(), response.getControls(), response.getReferralURLs(), response.getMessageId()); }