| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(baseDN.toString()), scope, |
| | | DereferencePolicy.DEREF_ALWAYS, 1 /* size limit */, |
| | | (timeoutMS / 1000), false /* types only */, |
| | | (timeoutMS / 1000), true /* types only */, |
| | | RawFilter.create(filter), NO_ATTRIBUTES); |
| | | sendRequest(searchRequest); |
| | | |
| | |
| | | case OP_TYPE_SEARCH_RESULT_ENTRY: |
| | | final SearchResultEntryProtocolOp searchEntry = responseMessage |
| | | .getSearchResultEntryProtocolOp(); |
| | | if (username != null) |
| | | if (username == null) |
| | | { |
| | | username = ByteString.valueOf(searchEntry.getDN().toString()); |
| | | } |
| | |
| | | String.valueOf(options.dn()), String.valueOf(baseDN), |
| | | String.valueOf(filter))); |
| | | |
| | | case TIME_LIMIT_EXCEEDED: |
| | | // The server timed out the search. |
| | | throw new DirectoryException(ResultCode.CLIENT_SIDE_TIMEOUT, |
| | | ERR_LDAP_PTA_CONNECTION_SEARCH_TIME_LIMIT.get(host, port, |
| | | String.valueOf(options.dn()), String.valueOf(baseDN), |
| | | String.valueOf(filter))); |
| | | |
| | | default: |
| | | // The search failed for some reason. |
| | | throw new DirectoryException(resultCode, |
| | |
| | | // Debug tracer for this class. |
| | | private static final DebugTracer TRACER = DebugLogger.getTracer(); |
| | | |
| | | // Attribute list for searches requesting no attributes. |
| | | private static final LinkedHashSet<String> NO_ATTRIBUTES; |
| | | /** |
| | | * Attribute list for searches requesting no attributes. |
| | | */ |
| | | static final LinkedHashSet<String> NO_ATTRIBUTES; |
| | | |
| | | static |
| | | { |
| | |
| | | case OTHER: |
| | | case UNWILLING_TO_PERFORM: |
| | | case OPERATIONS_ERROR: |
| | | case TIME_LIMIT_EXCEEDED: |
| | | case CLIENT_SIDE_CONNECT_ERROR: |
| | | case CLIENT_SIDE_DECODING_ERROR: |
| | | case CLIENT_SIDE_ENCODING_ERROR: |