| | |
| | | wrapColumn = 0; |
| | | } |
| | | |
| | | LDAPSearch ldapSearch = null; |
| | | try |
| | | { |
| | | if (initializeServer) |
| | |
| | | new PagedResultsControl(true, pageSize, cookieValue))); |
| | | searchOptions.setControls(newControls); |
| | | |
| | | LDAPSearch ldapSearch = new LDAPSearch(nextMessageID, out, err); |
| | | ldapSearch = new LDAPSearch(nextMessageID, out, err); |
| | | matchingEntries += ldapSearch.executeSearch(connection, baseDNValue, |
| | | filters, attributes, |
| | | searchOptions, |
| | |
| | | } |
| | | else |
| | | { |
| | | LDAPSearch ldapSearch = new LDAPSearch(nextMessageID, out, err); |
| | | ldapSearch = new LDAPSearch(nextMessageID, out, err); |
| | | matchingEntries = ldapSearch.executeSearch(connection, baseDNValue, |
| | | filters, attributes, |
| | | searchOptions, wrapColumn); |
| | |
| | | { |
| | | if(connection != null) |
| | | { |
| | | connection.close(); |
| | | if (ldapSearch == null) |
| | | { |
| | | connection.close(null); |
| | | } |
| | | else |
| | | { |
| | | connection.close(ldapSearch.nextMessageID); |
| | | } |
| | | } |
| | | } |
| | | } |