| | |
| | | import org.opends.server.protocols.internal.SearchRequest; |
| | | import org.opends.server.protocols.jmx.Credential; |
| | | import org.opends.server.protocols.jmx.JmxClientConnection; |
| | | import org.opends.server.protocols.ldap.LDAPFilter; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DirectoryException; |
| | |
| | | // Perform the Ldap operation for |
| | | // - ACI Check |
| | | // - Loggin purpose |
| | | InternalSearchOperation op=null; |
| | | SearchRequest request = newSearchRequest(configEntryDN, SearchScope.BASE_OBJECT); |
| | | InternalSearchOperation op = null; |
| | | if (clientConnection instanceof JmxClientConnection) { |
| | | op = ((JmxClientConnection)clientConnection).processSearch( |
| | | ByteString.valueOf(configEntryDN.toString()), |
| | | SearchScope.BASE_OBJECT, LDAPFilter.objectClassPresent()); |
| | | op = ((JmxClientConnection) clientConnection).processSearch(request); |
| | | } |
| | | else if (clientConnection instanceof InternalClientConnection) { |
| | | SearchRequest request = newSearchRequest(configEntryDN, SearchScope.BASE_OBJECT); |
| | | op = ((InternalClientConnection) clientConnection).processSearch(request); |
| | | } |
| | | // BUG : op may be null |
| | |
| | | */ |
| | | @Override |
| | | public AttributeList getAttributes(String[] attributes) |
| | | { |
| | | |
| | | { |
| | | // |
| | | // Get the jmx Client connection |
| | | ClientConnection clientConnection = getClientConnection(); |
| | |
| | | // Perform the Ldap operation for |
| | | // - ACI Check |
| | | // - Loggin purpose |
| | | SearchRequest request = newSearchRequest(configEntryDN, SearchScope.BASE_OBJECT); |
| | | InternalSearchOperation op = null; |
| | | if (clientConnection instanceof JmxClientConnection) { |
| | | op = ((JmxClientConnection)clientConnection).processSearch( |
| | | ByteString.valueOf(configEntryDN.toString()), |
| | | SearchScope.BASE_OBJECT, LDAPFilter.objectClassPresent()); |
| | | op = ((JmxClientConnection) clientConnection).processSearch(request); |
| | | } |
| | | else if (clientConnection instanceof InternalClientConnection) { |
| | | SearchRequest request = newSearchRequest(configEntryDN, SearchScope.BASE_OBJECT); |
| | | op = ((InternalClientConnection) clientConnection).processSearch(request); |
| | | } |
| | | |