OPENDJ-1308 Migrate schema support
*.java:
Replaced org.opends.server.types.DereferencePolicy by the SDK equivalent org.forgerock.opendj.ldap.DereferenceAliasesPolicy.
Also did the following API replacements:
- NEVER_DEREF_ALIASES => NEVER
- DEREF_IN_SEARCHING => IN_SEARCHING
- DEREF_FINDING_BASE_OBJECT => FINDING_BASE
- DEREF_ALWAYS => ALWAYS
| | |
| | | import org.opends.server.protocols.ldap.SearchResultEntryProtocolOp; |
| | | import org.opends.server.tools.LDAPConnection; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.LDAPException; |
| | | import org.opends.server.types.RawFilter; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | |
| | | |
| | | LDAPFilter filter = createFilter(searchRequest.getFilter()); |
| | | |
| | | DereferencePolicy derefPolicy = DereferencePolicy.NEVER_DEREF_ALIASES; |
| | | DereferenceAliasesPolicy derefPolicy = DereferenceAliasesPolicy.NEVER; |
| | | String derefStr = searchRequest.getDerefAliases().toLowerCase(); |
| | | if (derefStr.equals("derefinsearching")) |
| | | { |
| | | derefPolicy = DereferencePolicy.DEREF_IN_SEARCHING; |
| | | derefPolicy = DereferenceAliasesPolicy.IN_SEARCHING; |
| | | } |
| | | else if (derefStr.equals("dereffindingbaseobj")) |
| | | { |
| | | derefPolicy = DereferencePolicy.DEREF_FINDING_BASE_OBJECT; |
| | | derefPolicy = DereferenceAliasesPolicy.FINDING_BASE; |
| | | } |
| | | else if (derefStr.equals("derefalways")) |
| | | { |
| | | derefPolicy = DereferencePolicy.DEREF_ALWAYS; |
| | | derefPolicy = DereferenceAliasesPolicy.ALWAYS; |
| | | } |
| | | |
| | | SearchScope scope = SearchScope.WHOLE_SUBTREE; |
| | |
| | | import org.opends.server.tools.SSLConnectionException; |
| | | import org.opends.server.tools.SSLConnectionFactory; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.LDAPException; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.util.Base64; |
| | |
| | | { |
| | | SearchRequestProtocolOp protocolOp = new SearchRequestProtocolOp( |
| | | ByteString.wrap(new byte[]{}), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, 0, |
| | | true, LDAPFilter.decode("(objectClass=*)"), attributes); |
| | | byte opType; |
| | |
| | | import org.opends.server.types.Attributes; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.LDAPException; |
| | |
| | | attributes.add(attrName); |
| | | InternalSearchOperation search = internalConnection.processSearch( |
| | | ByteString.valueOf(baseDN), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.DEREF_ALWAYS, 0, 0, false, filter, attributes); |
| | | DereferenceAliasesPolicy.ALWAYS, 0, 0, false, filter, attributes); |
| | | |
| | | if ((search.getResultCode() != ResultCode.SUCCESS)) |
| | | { |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.std.server.DseeCompatAccessControlHandlerCfg; |
| | | import org.opends.server.api.AccessControlHandler; |
| | |
| | | import org.opends.server.protocols.internal.InternalSearchOperation; |
| | | import org.opends.server.protocols.ldap.LDAPControl; |
| | | import org.opends.server.types.*; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.workflowelement.localbackend.*; |
| | | |
| | | import static org.opends.messages.AccessControlMessages.*; |
| | |
| | | conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), |
| | | null, baseDN, SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("aci=*"), requestAttrs, null); |
| | | LocalBackendSearchOperation localSearch = |
| | | new LocalBackendSearchOperation(internalSearch); |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.api.AlertGenerator; |
| | | import org.opends.server.api.Backend; |
| | |
| | | .nextOperationID(), InternalClientConnection |
| | | .nextMessageID(), controls, baseDN, |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | aciFilter, attrs, null); |
| | | LocalBackendSearchOperation localInternalSearch = |
| | | new LocalBackendSearchOperation(internalSearch); |
| | |
| | | import java.util.List; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.protocols.internal.InternalClientConnection; |
| | |
| | | InternalSearchOperation op = |
| | | conn.processSearch(evalCtx.getClientDN(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, null); |
| | | LinkedList<SearchResultEntry> result = op.getSearchEntries(); |
| | | if (!result.isEmpty()) { |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation op = conn.processSearch(pDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, reqAttrs); |
| | | LinkedList<SearchResultEntry> result = |
| | | op.getSearchEntries(); |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.forgerock.util.Utils; |
| | | import org.opends.server.admin.ClassPropertyDefinition; |
| | |
| | | nextMessageID(), requestControls, |
| | | baseDN, |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, 0, false, filter, null, null); |
| | | LocalBackendSearchOperation localSearch = |
| | | new LocalBackendSearchOperation(internalSearch); |
| | |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.controls.MatchedValuesControl; |
| | | import org.opends.server.types.*; |
| | |
| | | * |
| | | * @return The alias dereferencing policy for this search operation. |
| | | */ |
| | | public abstract DereferencePolicy getDerefPolicy(); |
| | | public abstract DereferenceAliasesPolicy getDerefPolicy(); |
| | | |
| | | /** |
| | | * Specifies the alias dereferencing policy for this search operation. This |
| | |
| | | * @param derefPolicy The alias dereferencing policy for this search |
| | | * operation. |
| | | */ |
| | | public abstract void setDerefPolicy(DereferencePolicy derefPolicy); |
| | | public abstract void setDerefPolicy(DereferenceAliasesPolicy derefPolicy); |
| | | |
| | | /** |
| | | * Retrieves the size limit for this search operation. |
| | |
| | | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.api.AuthenticationPolicyState; |
| | | import org.opends.server.api.ClientConnection; |
| | |
| | | private ByteString rawBaseDN; |
| | | |
| | | /** The dereferencing policy for the search operation. */ |
| | | private DereferencePolicy derefPolicy; |
| | | private DereferenceAliasesPolicy derefPolicy; |
| | | |
| | | /** The base DN for the search operation. */ |
| | | private DN baseDN; |
| | |
| | | long operationID, |
| | | int messageID, List<Control> requestControls, |
| | | ByteString rawBaseDN, SearchScope scope, |
| | | DereferencePolicy derefPolicy, int sizeLimit, |
| | | DereferenceAliasesPolicy derefPolicy, int sizeLimit, |
| | | int timeLimit, boolean typesOnly, RawFilter rawFilter, |
| | | Set<String> attributes) |
| | | { |
| | |
| | | long operationID, |
| | | int messageID, List<Control> requestControls, |
| | | DN baseDN, SearchScope scope, |
| | | DereferencePolicy derefPolicy, int sizeLimit, |
| | | DereferenceAliasesPolicy derefPolicy, int sizeLimit, |
| | | int timeLimit, boolean typesOnly, SearchFilter filter, |
| | | Set<String> attributes) |
| | | { |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public final DereferencePolicy getDerefPolicy() |
| | | public final DereferenceAliasesPolicy getDerefPolicy() |
| | | { |
| | | return derefPolicy; |
| | | } |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public final void setDerefPolicy(DereferencePolicy derefPolicy) |
| | | public final void setDerefPolicy(DereferenceAliasesPolicy derefPolicy) |
| | | { |
| | | this.derefPolicy = derefPolicy; |
| | | } |
| | |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.controls.MatchedValuesControl; |
| | | import org.opends.server.types.*; |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public DereferencePolicy getDerefPolicy() |
| | | public DereferenceAliasesPolicy getDerefPolicy() |
| | | { |
| | | return getOperation().getDerefPolicy(); |
| | | } |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public void setDerefPolicy(DereferencePolicy derefPolicy) |
| | | public void setDerefPolicy(DereferenceAliasesPolicy derefPolicy) |
| | | { |
| | | getOperation().setDerefPolicy(derefPolicy); |
| | | } |
| | |
| | | import java.util.concurrent.locks.ReentrantReadWriteLock; |
| | | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.api.Backend; |
| | |
| | | conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), |
| | | requestControls, baseDN, SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, requestAttrs, null); |
| | | LocalBackendSearchOperation localSearch = |
| | | new LocalBackendSearchOperation(internalSearch); |
| | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.forgerock.util.Reject; |
| | | import org.opends.admin.ads.ADSContext; |
| | |
| | | import org.opends.server.tools.LDAPReader; |
| | | import org.opends.server.tools.LDAPWriter; |
| | | import org.opends.server.types.*; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.util.Base64; |
| | | import org.opends.server.util.SelectableCertificateKeyManager; |
| | | import org.opends.server.util.ServerConstants; |
| | |
| | | InternalSearchOperation searchOp = icc.processSearch( |
| | | entryDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | /* size limit */ 0, /* time limit */ 0, |
| | | /* types only */ false, |
| | | SearchFilter.createFilterFromString( |
| | |
| | | try { |
| | | final InternalSearchOperation searchOp |
| | | = icc.processSearch( entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | /* size limit */ 0, /* time limit */ 0, |
| | | /* types only */ false, |
| | | SearchFilter.createFilterFromString( |
| | |
| | | InternalSearchOperation searchOp = icc.processSearch( |
| | | instanceKeysDN, |
| | | SearchScope.SINGLE_LEVEL, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | /* size limit */ 0, /* time limit */ 0, |
| | | /* types only */ false, |
| | | SearchFilter.createFilterFromString(searchFilter), |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.admin.ads.ADSContext; |
| | | import org.opends.server.api.Backend; |
| | |
| | | InternalClientConnection.nextMessageID(), |
| | | controls, |
| | | adminSuffixDN, SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, 0, |
| | | false, keySearchFilter, attributes, |
| | | null); |
| | |
| | | import org.opends.server.protocols.internal.InternalClientConnection; |
| | | import org.opends.server.protocols.internal.InternalSearchListener; |
| | | import org.opends.server.protocols.internal.InternalSearchOperation; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.LDAPURL; |
| | |
| | | { |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(baseDNs[searchCounter], SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, |
| | | false, searchFilters[searchCounter], attributes, |
| | | this); |
| | | |
| | |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.admin.std.server.ExactMatchIdentityMapperCfg; |
| | |
| | | { |
| | | InternalSearchOperation internalSearch = |
| | | conn.processSearch(baseDN, SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 1, 10, |
| | | DereferenceAliasesPolicy.NEVER, 1, 10, |
| | | false, filter, requestedAttributes); |
| | | |
| | | switch (internalSearch.getResultCode().asEnum()) |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.admin.std.server.CertificateMapperCfg; |
| | |
| | | { |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(baseDN, SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 1, 10, |
| | | DereferenceAliasesPolicy.NEVER, 1, 10, |
| | | false, filter, requestedAttributes); |
| | | |
| | | switch (searchOperation.getResultCode().asEnum()) |
| | |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.opends.server.types.ConfigChangeResult; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.Entry; |
| | |
| | | final SearchRequestProtocolOp searchRequest = |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(baseDN.toString()), scope, |
| | | DereferencePolicy.DEREF_ALWAYS, 1 /* size limit */, |
| | | DereferenceAliasesPolicy.ALWAYS, 1 /* size limit */, |
| | | (timeoutMS / 1000), true /* types only */, |
| | | RawFilter.create(filter), NO_ATTRIBUTES); |
| | | sendRequest(searchRequest); |
| | |
| | | import org.forgerock.opendj.io.ASN1Writer; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ByteStringBuilder; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.std.server.PasswordPolicyStateExtendedOperationHandlerCfg; |
| | | import org.opends.server.api.AuthenticationPolicy; |
| | |
| | | |
| | | InternalSearchOperation internalSearch = |
| | | conn.processSearch(targetDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 1, 0, |
| | | DereferenceAliasesPolicy.NEVER, 1, 0, |
| | | false, userFilter, requestAttributes, null); |
| | | if (internalSearch.getResultCode() != ResultCode.SUCCESS) |
| | | { |
| | |
| | | import java.util.regex.PatternSyntaxException; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.admin.std.server.IdentityMapperCfg; |
| | |
| | | { |
| | | InternalSearchOperation internalSearch = |
| | | conn.processSearch(baseDN, SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 1, 10, |
| | | DereferenceAliasesPolicy.NEVER, 1, 10, |
| | | false, filter, requestedAttributes); |
| | | |
| | | switch (internalSearch.getResultCode().asEnum()) |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.admin.std.server.CertificateMapperCfg; |
| | |
| | | { |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(baseDN, SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 1, 10, |
| | | DereferenceAliasesPolicy.NEVER, 1, 10, |
| | | false, filter, requestedAttributes); |
| | | |
| | | switch (searchOperation.getResultCode().asEnum()) |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.admin.std.server.CertificateMapperCfg; |
| | |
| | | { |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(baseDN, SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 1, 10, |
| | | DereferenceAliasesPolicy.NEVER, 1, 10, |
| | | false, filter, requestedAttributes); |
| | | switch (searchOperation.getResultCode().asEnum()) |
| | | { |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | |
| | | InternalClientConnection conn = |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation operation = conn.processSearch(baseDN, |
| | | SearchScope.WHOLE_SUBTREE, DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, |
| | | SearchScope.WHOLE_SUBTREE, DereferenceAliasesPolicy.NEVER, 0, 0, |
| | | false, SearchFilter.createORFilter(componentFilters), null); |
| | | |
| | | switch (operation.getResultCode().asEnum()) |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.admin.std.meta.PluginCfgDefn; |
| | |
| | | { |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(baseDN, SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 2, 0, |
| | | DereferenceAliasesPolicy.NEVER, 2, 0, |
| | | false, filter, SEARCH_ATTRS); |
| | | for (SearchResultEntry e : searchOperation.getSearchEntries()) |
| | | { |
| | |
| | | SearchOperationBasis operation = |
| | | new SearchOperationBasis(clientConnection, messageID, messageID, |
| | | to(request.getControls()), valueOf(request.getName()), |
| | | request.getScope(), to(request.getDereferenceAliasesPolicy()), |
| | | request.getScope(), request.getDereferenceAliasesPolicy(), |
| | | request.getSizeLimit(), request.getTimeLimit(), |
| | | request.isTypesOnly(), to(request.getFilter()), |
| | | new LinkedHashSet<String>(request.getAttributes())); |
| | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.api.ConnectionHandler; |
| | |
| | | */ |
| | | public InternalSearchOperation |
| | | processSearch(String rawBaseDN, SearchScope scope, |
| | | DereferencePolicy derefPolicy, |
| | | DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, String filterString, |
| | | Set<String> attributes) |
| | |
| | | */ |
| | | public InternalSearchOperation |
| | | processSearch(String rawBaseDN, SearchScope scope, |
| | | DereferencePolicy derefPolicy, |
| | | DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, String filterString, |
| | | Set<String> attributes, |
| | |
| | | */ |
| | | public InternalSearchOperation |
| | | processSearch(String rawBaseDN, SearchScope scope, |
| | | DereferencePolicy derefPolicy, |
| | | DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, String filterString, |
| | | Set<String> attributes, |
| | |
| | | RawFilter filter) |
| | | { |
| | | return processSearch(rawBaseDN, scope, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, |
| | | false, filter, new LinkedHashSet<String>(0)); |
| | | } |
| | | |
| | |
| | | public InternalSearchOperation |
| | | processSearch(ByteString rawBaseDN, |
| | | SearchScope scope, |
| | | DereferencePolicy derefPolicy, |
| | | DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, RawFilter filter, |
| | | Set<String> attributes) |
| | |
| | | public InternalSearchOperation |
| | | processSearch(ByteString rawBaseDN, |
| | | SearchScope scope, |
| | | DereferencePolicy derefPolicy, |
| | | DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, RawFilter filter, |
| | | Set<String> attributes, |
| | |
| | | public InternalSearchOperation |
| | | processSearch(ByteString rawBaseDN, |
| | | SearchScope scope, |
| | | DereferencePolicy derefPolicy, |
| | | DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, RawFilter filter, |
| | | Set<String> attributes, |
| | |
| | | SearchFilter filter) |
| | | { |
| | | return processSearch(baseDN, scope, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, |
| | | false, filter, new LinkedHashSet<String>(0)); |
| | | } |
| | | |
| | |
| | | */ |
| | | public InternalSearchOperation |
| | | processSearch(DN baseDN, SearchScope scope, |
| | | DereferencePolicy derefPolicy, |
| | | DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, SearchFilter filter, |
| | | Set<String> attributes) |
| | |
| | | */ |
| | | public InternalSearchOperation |
| | | processSearch(DN baseDN, SearchScope scope, |
| | | DereferencePolicy derefPolicy, |
| | | DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, SearchFilter filter, |
| | | Set<String> attributes, |
| | |
| | | */ |
| | | public InternalSearchOperation |
| | | processSearch(DN baseDN, SearchScope scope, |
| | | DereferencePolicy derefPolicy, |
| | | DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, SearchFilter filter, |
| | | Set<String> attributes, |
| | |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.core.SearchOperationBasis; |
| | |
| | | ClientConnection internalConnection, |
| | | long operationID, int messageID, |
| | | List<Control> requestControls, ByteString rawBaseDN, |
| | | SearchScope scope, DereferencePolicy derefPolicy, |
| | | SearchScope scope, DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, boolean typesOnly, |
| | | RawFilter rawFilter, Set<String> attributes, |
| | | InternalSearchListener searchListener) |
| | |
| | | ClientConnection internalConnection, |
| | | long operationID, int messageID, |
| | | List<Control> requestControls, DN baseDN, |
| | | SearchScope scope, DereferencePolicy derefPolicy, |
| | | SearchScope scope, DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, boolean typesOnly, |
| | | SearchFilter filter, Set<String> attributes, |
| | | InternalSearchListener searchListener) |
| | |
| | | import org.forgerock.i18n.LocalizableMessageBuilder; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.api.ClientConnection; |
| | | import org.opends.server.api.ConnectionHandler; |
| | |
| | | import org.opends.server.protocols.internal.InternalSearchOperation; |
| | | import org.opends.server.protocols.ldap.LDAPFilter; |
| | | import org.opends.server.types.*; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | |
| | | import static org.opends.messages.ProtocolMessages.*; |
| | | |
| | |
| | | SearchScope scope, LDAPFilter filter) |
| | | { |
| | | return processSearch(rawBaseDN, scope, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, new LinkedHashSet<String>(0)); |
| | | } |
| | | |
| | |
| | | */ |
| | | public InternalSearchOperation processSearch(ByteString rawBaseDN, |
| | | SearchScope scope, |
| | | DereferencePolicy derefPolicy, |
| | | DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, LDAPFilter filter, |
| | | LinkedHashSet<String> attributes) |
| | |
| | | */ |
| | | public InternalSearchOperation processSearch(ByteString rawBaseDN, |
| | | SearchScope scope, |
| | | DereferencePolicy derefPolicy, |
| | | DereferenceAliasesPolicy derefPolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, LDAPFilter filter, |
| | | LinkedHashSet<String> attributes, |
| | |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashSet; |
| | | import java.util.LinkedList; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.io.ASN1; |
| | | import org.forgerock.opendj.io.ASN1Reader; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.types.*; |
| | | |
| | |
| | | import static org.opends.server.protocols.ldap.LDAPConstants.*; |
| | | import static org.opends.server.protocols.ldap.LDAPResultCode.*; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.LinkedHashSet; |
| | | import java.util.LinkedList; |
| | | |
| | | /** |
| | | * Utility class used to decode LDAP messages from an ASN1Reader. |
| | | */ |
| | |
| | | } |
| | | |
| | | |
| | | DereferencePolicy dereferencePolicy; |
| | | DereferenceAliasesPolicy dereferencePolicy; |
| | | try |
| | | { |
| | | int derefValue = (int)reader.readInteger(); |
| | | switch (derefValue) |
| | | { |
| | | case DEREF_NEVER: |
| | | dereferencePolicy = DereferencePolicy.NEVER_DEREF_ALIASES; |
| | | break; |
| | | case DEREF_IN_SEARCHING: |
| | | dereferencePolicy = DereferencePolicy.DEREF_IN_SEARCHING; |
| | | break; |
| | | case DEREF_FINDING_BASE: |
| | | dereferencePolicy = DereferencePolicy.DEREF_FINDING_BASE_OBJECT; |
| | | break; |
| | | case DEREF_ALWAYS: |
| | | dereferencePolicy = DereferencePolicy.DEREF_ALWAYS; |
| | | dereferencePolicy = DereferenceAliasesPolicy.valueOf(derefValue); |
| | | break; |
| | | default: |
| | | LocalizableMessage message = |
| | |
| | | import java.util.LinkedHashSet; |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.io.ASN1Writer; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.RawFilter; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | |
| | |
| | | public class SearchRequestProtocolOp |
| | | extends ProtocolOp |
| | | { |
| | | private static final LocalizedLogger logger = LocalizedLogger.getLoggerForThisClass(); |
| | | |
| | | /** The typesOnly flag for this search request. */ |
| | | private boolean typesOnly; |
| | | |
| | | /** The alias dereferencing policy for this search request. */ |
| | | private DereferencePolicy dereferencePolicy; |
| | | private DereferenceAliasesPolicy dereferencePolicy; |
| | | |
| | | /** The base DN for this search request. */ |
| | | private ByteString baseDN; |
| | |
| | | * request. |
| | | */ |
| | | public SearchRequestProtocolOp(ByteString baseDN, SearchScope scope, |
| | | DereferencePolicy dereferencePolicy, |
| | | DereferenceAliasesPolicy dereferencePolicy, |
| | | int sizeLimit, int timeLimit, |
| | | boolean typesOnly, RawFilter filter, |
| | | Set<String> attributes) |
| | |
| | | * |
| | | * @return The alias dereferencing policy for this search request. |
| | | */ |
| | | public DereferencePolicy getDereferencePolicy() |
| | | public DereferenceAliasesPolicy getDereferencePolicy() |
| | | { |
| | | return dereferencePolicy; |
| | | } |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DecodeException; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.admin.std.meta.ReplicationDomainCfgDefn.IsolationPolicy; |
| | |
| | | import org.opends.server.tasks.PurgeConflictsHistoricalTask; |
| | | import org.opends.server.tasks.TaskUtils; |
| | | import org.opends.server.types.*; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.types.operation.*; |
| | | import org.opends.server.util.LDIFReader; |
| | | import org.opends.server.util.TimeThread; |
| | | import org.opends.server.workflowelement.externalchangelog.ECLWorkflowElement; |
| | | import org.opends.server.workflowelement.localbackend.LocalBackendModifyOperation; |
| | | |
| | | import static org.forgerock.opendj.ldap.ResultCode.*; |
| | | import static org.opends.messages.ReplicationMessages.*; |
| | | import static org.opends.messages.ToolMessages.*; |
| | | import static org.opends.server.replication.plugin.EntryHistorical.*; |
| | | import static org.opends.server.replication.protocol.OperationContext.*; |
| | | import static org.opends.server.replication.service.ReplicationMonitor.*; |
| | | import static org.forgerock.opendj.ldap.ResultCode.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | |
| | | attributes.add(REPLICATION_FRACTIONAL_INCLUDE); |
| | | InternalSearchOperation search = conn.processSearch(asn1BaseDn, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.DEREF_ALWAYS, 0, 0, false, |
| | | DereferenceAliasesPolicy.ALWAYS, 0, 0, false, |
| | | filter, attributes); |
| | | if (search.getResultCode() != ResultCode.SUCCESS |
| | | && search.getResultCode() != ResultCode.NO_SUCH_OBJECT) |
| | |
| | | InternalSearchOperation searchOp = conn.processSearch( |
| | | ByteString.valueOf(getBaseDNString()), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, 0, false, filter, |
| | | USER_AND_REPL_OPERATIONAL_ATTRS, null); |
| | | |
| | |
| | | Set<String> attrs = new LinkedHashSet<String>(1); |
| | | attrs.add(ENTRYUUID_ATTRIBUTE_NAME); |
| | | InternalSearchOperation search = conn.processSearch(dn, |
| | | SearchScope.BASE_OBJECT, DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | SearchScope.BASE_OBJECT, DereferenceAliasesPolicy.NEVER, |
| | | 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectclass=*)"), |
| | | attrs); |
| | |
| | | |
| | | InternalSearchOperation op = |
| | | conn.processSearch(entryDN, SearchScope.SINGLE_LEVEL, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | attrs); |
| | | |
| | |
| | | final String filter = "(objectclass=*)"; |
| | | InternalSearchOperation search = conn.processSearch(getBaseDNString(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.DEREF_ALWAYS, 0, 0, false, |
| | | DereferenceAliasesPolicy.ALWAYS, 0, 0, false, |
| | | filter,attributes); |
| | | if (search.getResultCode() == ResultCode.NO_SUCH_OBJECT) |
| | | { |
| | |
| | | // in the config entry. |
| | | search = conn.processSearch(config.dn().toString(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.DEREF_ALWAYS, 0, 0, false, |
| | | DereferenceAliasesPolicy.ALWAYS, 0, 0, false, |
| | | filter,attributes); |
| | | } |
| | | |
| | |
| | | return conn.processSearch( |
| | | ByteString.valueOf(baseDN.toString()), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, 0, false, filter, |
| | | USER_AND_REPL_OPERATIONAL_ATTRS, |
| | | resultListener); |
| | |
| | | InternalSearchOperation searchOp = conn.processSearch( |
| | | ByteString.valueOf(getBaseDNString()), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, 0, false, filter, |
| | | USER_AND_REPL_OPERATIONAL_ATTRS, null); |
| | | |
| | |
| | | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | attributes.add(REPLICATION_STATE); |
| | | InternalSearchOperation search = conn.processSearch(baseDn, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, 0, false, filter, attributes); |
| | | if (((search.getResultCode() != ResultCode.SUCCESS)) && |
| | | ((search.getResultCode() != ResultCode.NO_SUCH_OBJECT))) |
| | |
| | | InternalSearchOperation op = |
| | | conn.processSearch(DN.valueOf("cn=config"), |
| | | SearchScope.SUBORDINATES, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 1, 0, false, filter, attributes); |
| | | |
| | | if (op.getResultCode() == ResultCode.SUCCESS) |
| | |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.forgerock.util.Reject; |
| | | import org.opends.server.admin.Configuration; |
| | |
| | | InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), |
| | | null, entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, null, null); |
| | | search(searchOp); |
| | | List<SearchResultEntry> resultEntries = searchOp.getSearchEntries(); |
| | |
| | | |
| | | import java.io.PrintStream; |
| | | |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | |
| | | import static org.opends.messages.ToolMessages.*; |
| | | import static org.opends.server.types.DereferencePolicy.*; |
| | | import static org.forgerock.opendj.ldap.DereferenceAliasesPolicy.*; |
| | | import static org.forgerock.opendj.ldap.SearchScope.*; |
| | | |
| | | |
| | |
| | | public class LDAPSearchOptions extends LDAPToolOptions |
| | | { |
| | | |
| | | private DereferencePolicy dereferencePolicy = NEVER_DEREF_ALIASES; |
| | | private DereferenceAliasesPolicy dereferencePolicy = NEVER; |
| | | private SearchScope searchScope = WHOLE_SUBTREE; |
| | | private int sizeLimit = 0; |
| | | private int timeLimit = 0; |
| | |
| | | { |
| | | if(policy == null) |
| | | { |
| | | dereferencePolicy = NEVER_DEREF_ALIASES; |
| | | dereferencePolicy = NEVER; |
| | | } else if(policy.equals("never")) |
| | | { |
| | | dereferencePolicy = NEVER_DEREF_ALIASES; |
| | | dereferencePolicy = NEVER; |
| | | } else if(policy.equals("always")) |
| | | { |
| | | dereferencePolicy = DEREF_ALWAYS; |
| | | dereferencePolicy = ALWAYS; |
| | | } else if (policy.equals("search")) |
| | | { |
| | | dereferencePolicy = DEREF_IN_SEARCHING; |
| | | dereferencePolicy = IN_SEARCHING; |
| | | } else if (policy.equals("find")) |
| | | { |
| | | dereferencePolicy = DEREF_FINDING_BASE_OBJECT; |
| | | dereferencePolicy = FINDING_BASE; |
| | | } else |
| | | { |
| | | err.println("Invalid deref alias specified:" + policy); |
| | |
| | | * |
| | | * @return The alias dereference policy. |
| | | */ |
| | | public DereferencePolicy getDereferencePolicy() |
| | | public DereferenceAliasesPolicy getDereferencePolicy() |
| | | { |
| | | return dereferencePolicy; |
| | | } |
| | |
| | | import org.opends.server.tools.LDAPWriter; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.LDAPException; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | |
| | | writeSearch(new SearchRequestProtocolOp( |
| | | ByteString.valueOf(ConfigConstants.DN_TASK_ROOT), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | writeSearch(new SearchRequestProtocolOp( |
| | | ByteString.valueOf(ConfigConstants.DN_TASK_ROOT), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.RawFilter; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | |
| | | * @return The alias dereferencing policy for this search |
| | | * operation. |
| | | */ |
| | | public DereferencePolicy getDerefPolicy(); |
| | | public DereferenceAliasesPolicy getDerefPolicy(); |
| | | |
| | | |
| | | |
| | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.RawFilter; |
| | | import org.opends.server.types.SearchFilter; |
| | | |
| | |
| | | * @return The alias dereferencing policy for this search |
| | | * operation. |
| | | */ |
| | | public DereferencePolicy getDerefPolicy(); |
| | | public DereferenceAliasesPolicy getDerefPolicy(); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.RawFilter; |
| | |
| | | * @return The alias dereferencing policy for this search |
| | | * operation. |
| | | */ |
| | | public DereferencePolicy getDerefPolicy(); |
| | | public DereferenceAliasesPolicy getDerefPolicy(); |
| | | |
| | | |
| | | |
| | |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.types.*; |
| | | |
| | |
| | | * @return The alias dereferencing policy for this search |
| | | * operation. |
| | | */ |
| | | public DereferencePolicy getDerefPolicy(); |
| | | public DereferenceAliasesPolicy getDerefPolicy(); |
| | | |
| | | |
| | | |
| | |
| | | * @param derefPolicy The alias dereferencing policy for this |
| | | * search operation. |
| | | */ |
| | | public void setDerefPolicy(DereferencePolicy derefPolicy); |
| | | public void setDerefPolicy(DereferenceAliasesPolicy derefPolicy); |
| | | |
| | | |
| | | |
| | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.RawFilter; |
| | | import org.opends.server.types.SearchFilter; |
| | | |
| | |
| | | * @return The alias dereferencing policy for this search |
| | | * operation. |
| | | */ |
| | | public DereferencePolicy getDerefPolicy(); |
| | | public DereferenceAliasesPolicy getDerefPolicy(); |
| | | |
| | | |
| | | |
| | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.RawFilter; |
| | | import org.opends.server.types.SearchFilter; |
| | | |
| | |
| | | * @return The alias dereferencing policy for this search |
| | | * operation. |
| | | */ |
| | | public DereferencePolicy getDerefPolicy(); |
| | | public DereferenceAliasesPolicy getDerefPolicy(); |
| | | |
| | | |
| | | |
| | |
| | | import java.util.*; |
| | | |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | InternalSearchOperation search = |
| | | conn.processSearch(DN.valueOf("dc=test,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, |
| | | 0, |
| | | false, |
| | |
| | | |
| | | search = conn.processSearch(DN.valueOf("dc=test,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, |
| | | 0, |
| | | false, |
| | |
| | | |
| | | search = conn.processSearch(DN.valueOf("dc=test,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, |
| | | 0, |
| | | false, |
| | |
| | | |
| | | search = conn.processSearch(DN.valueOf("dc=test,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, |
| | | 0, |
| | | false, |
| | |
| | | |
| | | search = conn.processSearch(DN.valueOf("dc=test,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, |
| | | 0, |
| | | false, |
| | |
| | | |
| | | search = conn.processSearch(DN.valueOf("dc=test,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, |
| | | 0, |
| | | false, |
| | |
| | | InternalSearchOperation search = |
| | | conn.processSearch(DN.valueOf("dc=test,dc=com"), |
| | | SearchScope.SUBORDINATES, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, |
| | | 0, |
| | | false, |
| | |
| | | InternalSearchOperation search = |
| | | conn.processSearch(DN.valueOf("dc=test,dc=com"), |
| | | SearchScope.SUBORDINATES, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, |
| | | 0, |
| | | false, |
| | |
| | | import java.util.TreeSet; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.DirectoryServerTestCase; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.testng.Assert.*; |
| | | |
| | | @SuppressWarnings("javadoc") |
| | | public class TestVLVIndex extends DirectoryServerTestCase { |
| | | private SortOrder sortOrder; |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=vlvtest,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.protocols.ldap.*; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.RawAttribute; |
| | | import org.opends.server.types.RawModification; |
| | | import org.opends.server.util.StaticUtils; |
| | |
| | | SearchRequestProtocolOp searchRequest = |
| | | new SearchRequestProtocolOp(ByteString.valueOf("o=test"), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, |
| | | LDAPFilter.decode("(objectClass=*)"), |
| | | new LinkedHashSet<String>()); |
| | |
| | | import org.forgerock.opendj.io.ASN1Writer; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ByteStringBuilder; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | controls.add(persSearchControl); |
| | | final InternalSearchOperation search = |
| | | conn.processSearch("o=test", SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, // Size limit |
| | | DereferenceAliasesPolicy.NEVER, 0, // Size limit |
| | | 0, // Time limit |
| | | true, // Types only |
| | | "(objectClass=*)", attributes, controls, null); |
| | |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.Entry; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.types.SearchFilter; |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | import org.forgerock.opendj.io.ASN1Writer; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ByteStringBuilder; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.core.DirectoryServer; |
| | |
| | | private AttributeType snType; |
| | | |
| | | // The DN for "Aaccf Johnson" |
| | | DN aaccfJohnsonDN; |
| | | private DN aaccfJohnsonDN; |
| | | |
| | | // The DN for "Aaron Zimmerman" |
| | | DN aaronZimmermanDN; |
| | | private DN aaronZimmermanDN; |
| | | |
| | | // The DN for "Albert Smith" |
| | | DN albertSmithDN; |
| | | private DN albertSmithDN; |
| | | |
| | | // The DN for "Albert Zimmerman" |
| | | DN albertZimmermanDN; |
| | | private DN albertZimmermanDN; |
| | | |
| | | // The DN for "lowercase mcgee" |
| | | DN lowercaseMcGeeDN; |
| | | private DN lowercaseMcGeeDN; |
| | | |
| | | // The DN for "Mararet Jones" |
| | | DN margaretJonesDN; |
| | | private DN margaretJonesDN; |
| | | |
| | | // The DN for "Mary Jones" |
| | | DN maryJonesDN; |
| | | private DN maryJonesDN; |
| | | |
| | | // The DN for "Sam Zweck" |
| | | DN samZweckDN; |
| | | private DN samZweckDN; |
| | | |
| | | // The DN for "Zorro" |
| | | DN zorroDN; |
| | | private DN zorroDN; |
| | | |
| | | |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=person)"), |
| | | null, null); |
| | | |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | SearchRequestProtocolOp searchRequest = |
| | | new SearchRequestProtocolOp(ByteString.valueOf("o=test"), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, |
| | | LDAPFilter.decode("(match=false)"), |
| | | new LinkedHashSet<String>()); |
| | |
| | | import org.opends.server.tools.LDAPModify; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.Attributes; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.Entry; |
| | |
| | | new InternalSearchOperation(conn0, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, DN.rootDN(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | |
| | |
| | | new InternalSearchOperation(conn1, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, DN.rootDN(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | |
| | |
| | | new InternalSearchOperation(conn2, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, DN.rootDN(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | |
| | |
| | | new InternalSearchOperation(conn3, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, DN.rootDN(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | |
| | |
| | | // group operations correctly. |
| | | DN userDN = DN.valueOf("uid=test1,ou=people,dc=example,dc=com"); |
| | | InternalClientConnection conn = new InternalClientConnection(userDN); |
| | | InternalSearchOperation searchOperation = |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, DN.rootDN(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | |
| | | assertTrue(conn.isMemberOf(group1, null)); |
| | | assertTrue(conn.isMemberOf(group2, null)); |
| | | assertTrue(conn.isMemberOf(group3, null)); |
| | |
| | | |
| | | InternalClientConnection conn1 = |
| | | new InternalClientConnection(userDN); |
| | | searchOperation = |
| | | new InternalSearchOperation(conn1, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, DN.rootDN(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | |
| | | group1 = groupManager.getGroupInstance( |
| | | DN.valueOf("cn=group1,ou=moregroups,dc=example,dc=com")); |
| | | assertNotNull(group1); |
| | |
| | | // group operations correctly. |
| | | DN userDN = DN.valueOf("uid=test1,ou=people,dc=example,dc=com"); |
| | | InternalClientConnection conn = new InternalClientConnection(userDN); |
| | | InternalSearchOperation searchOperation = |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, DN.rootDN(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | |
| | | assertTrue(conn.isMemberOf(group1, null)); |
| | | assertTrue(conn.isMemberOf(group2, null)); |
| | | assertTrue(conn.isMemberOf(group3, null)); |
| | |
| | | |
| | | InternalClientConnection conn1 = |
| | | new InternalClientConnection(userDN); |
| | | searchOperation = |
| | | new InternalSearchOperation(conn1, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, DN.rootDN(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | |
| | | group1 = groupManager.getGroupInstance( |
| | | DN.valueOf("cn=group1,ou=moregroups,dc=example,dc=com")); |
| | | assertNotNull(group1); |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf("uid=test.user," + baseDN), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(baseDN), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(baseDN), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DecodeException; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.controls.MatchedValuesControl; |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | -1, |
| | | -1, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | true, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | true, |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | true, |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | true, |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | true, |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.SINGLE_LEVEL, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | Collections.singletonList((Control)new SubentriesControl(true, true)), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | InternalClientConnection.nextMessageID(), |
| | | Collections.singletonList((Control) new LDAPControl( |
| | | OID_LDUP_SUBENTRIES, true)), ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | SearchScope.WHOLE_SUBTREE, DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, Integer.MAX_VALUE, false, |
| | | LDAPFilter.decode("(objectclass=*)"), null, null); |
| | | |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(BASE), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf("ou=nonexistent,o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | |
| | | InternalSearchOperation search = |
| | | conn.processSearch(userDNString, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, // Size limit |
| | | DereferenceAliasesPolicy.NEVER, 0, // Size limit |
| | | 0, // Time limit |
| | | typesOnly, // Types only |
| | | "(objectClass=*)", attributes, controls, null); |
| | |
| | | |
| | | InternalSearchOperation search = |
| | | conn.processSearch(userDNString, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, // Size limit |
| | | DereferenceAliasesPolicy.NEVER, 0, // Size limit |
| | | 0, // Time limit |
| | | false, // Types only |
| | | "(objectClass=*)", attributes); |
| | |
| | | new SearchRequestProtocolOp( |
| | | ByteString.valueOf(userDNString), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf("dc=example,dc=com"), |
| | | SearchScope.SINGLE_LEVEL, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | import java.util.List; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.testng.Assert.*; |
| | | |
| | | @SuppressWarnings("javadoc") |
| | | public class SubentryManagerTestCase extends CoreTestCase |
| | | { |
| | | private static final String SUFFIX = "dc=example,dc=com"; |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(testEntry.getName().toString()), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | import java.util.ArrayList; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf(baseDN), |
| | | scope, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | import javax.naming.ldap.LdapName; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.admin.ads.ADSContext; |
| | | import org.opends.admin.ads.util.ConnectionUtils; |
| | |
| | | InternalSearchOperation searchOp = icc.processSearch( |
| | | baseDN, |
| | | SearchScope.SINGLE_LEVEL, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | /* size limit */ 0, /* time limit */ 0, |
| | | /* types only */ false, |
| | | SearchFilter.createFilterFromString(searchFilter), |
| | |
| | | import java.util.LinkedHashSet; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.admin.ads.ADSContext; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | InternalSearchOperation searchOp = icc.processSearch( |
| | | baseDN, |
| | | SearchScope.SINGLE_LEVEL, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | /* size limit */ 0, /* time limit */ 0, |
| | | /* types only */ false, |
| | | SearchFilter.createFilterFromString(searchFilter), |
| | |
| | | import org.opends.server.protocols.ldap.SearchResultDoneProtocolOp; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ByteStringBuilder; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.Entry; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.opends.server.types.RawAttribute; |
| | |
| | | SearchRequestProtocolOp searchRequest = |
| | | new SearchRequestProtocolOp(ByteString.valueOf("o=test"), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, |
| | | LDAPFilter.decode("(match=false)"), |
| | | new LinkedHashSet<String>()); |
| | |
| | | import org.opends.server.types.AttributeValues; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.Entry; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | |
| | | attrList.add("*"); |
| | | attrList.add(ETAG); |
| | | InternalSearchOperation searchOperation = conn.processSearch(userDN, |
| | | SearchScope.BASE_OBJECT, DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, |
| | | SearchScope.BASE_OBJECT, DereferenceAliasesPolicy.NEVER, 0, 0, |
| | | false, "(objectClass=*)", attrList); |
| | | assertEquals(searchOperation.getResultCode(), ResultCode.SUCCESS); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.admin.std.meta.VirtualAttributeCfgDefn; |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 0); |
| | | } |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | InternalClientConnection.nextMessageID(), null, |
| | | DN.valueOf("o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, null, null); |
| | | // This attribute is searchable for either pre-indexed or not |
| | | assertEquals(provider.isSearchable(rule, searchOperation, false), |
| | |
| | | InternalClientConnection.nextMessageID(), null, |
| | | DN.valueOf("o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, null, null); |
| | | LocalBackendSearchOperation localSearch = |
| | | new LocalBackendSearchOperation(searchOperation); |
| | |
| | | import java.util.Set; |
| | | import java.util.UUID; |
| | | |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.admin.std.meta.VirtualAttributeCfgDefn; |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 0); |
| | | } |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | import org.opends.server.schema.SchemaConstants; |
| | | import org.opends.server.types.AttributeType; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.SearchFilter; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, |
| | | attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, |
| | | attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, |
| | | attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, |
| | | attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, |
| | | attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | import org.opends.server.types.AttributeValues; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.SearchFilter; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 0); |
| | | } |
| | |
| | | .nextOperationID(), InternalClientConnection |
| | | .nextMessageID(), requestControls, entryDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, |
| | | attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | .nextOperationID(), InternalClientConnection |
| | | .nextMessageID(), requestControls, entryDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, |
| | | attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | import java.util.List; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.DirectoryServerTestCase; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | import static org.testng.Assert.*; |
| | | |
| | | @SuppressWarnings("javadoc") |
| | | public class HasSubordinatesVirtualAttributeProviderTestCase extends DirectoryServerTestCase { |
| | | // The attribute type for the hasSubordinates attribute. |
| | | private AttributeType hasSubordinatesType; |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 0); |
| | | } |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | import org.opends.server.types.AttributeValues; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.Entry; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.types.SearchFilter; |
| | |
| | | null, |
| | | DN.valueOf("o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, null, null); |
| | | |
| | | assertEquals(provider.isSearchable(rule, |
| | |
| | | null, |
| | | DN.valueOf("o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, null, null); |
| | | provider.processSearch(rule, new LocalBackendSearchOperation(searchOperation)); |
| | | |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf("dc=example,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | import org.forgerock.opendj.io.ASN1Writer; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ByteStringBuilder; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | { |
| | | final int timeout = (int) (cfg.getConnectionTimeout() / 1000); |
| | | return new SearchRequestProtocolOp(ByteString.valueOf(dn), |
| | | SearchScope.WHOLE_SUBTREE, DereferencePolicy.DEREF_ALWAYS, 1, timeout, |
| | | SearchScope.WHOLE_SUBTREE, DereferenceAliasesPolicy.ALWAYS, 1, timeout, |
| | | true, RawFilter.create(filter), |
| | | LDAPPassThroughAuthenticationPolicyFactory.NO_ATTRIBUTES); |
| | | } |
| | |
| | | import java.util.List; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.DirectoryServerTestCase; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 0); |
| | | } |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | import java.util.List; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.protocols.internal.InternalClientConnection; |
| | |
| | | InternalSearchOperation search = |
| | | conn.processSearch(notExpired.getName().toString(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.DEREF_ALWAYS, |
| | | DereferenceAliasesPolicy.ALWAYS, |
| | | 0, |
| | | 0, |
| | | false, |
| | |
| | | import org.opends.server.types.AttributeValues; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.SearchFilter; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 0); |
| | | } |
| | |
| | | .nextOperationID(), InternalClientConnection |
| | | .nextMessageID(), requestControls, entryDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, |
| | | attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | .nextOperationID(), InternalClientConnection |
| | | .nextMessageID(), requestControls, entryDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, |
| | | attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | import org.opends.server.types.AttributeValues; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.SearchFilter; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | | |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(entryDN, SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | filter, attrList); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 0); |
| | | } |
| | |
| | | .nextOperationID(), InternalClientConnection |
| | | .nextMessageID(), requestControls, entryDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, |
| | | attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | .nextOperationID(), InternalClientConnection |
| | | .nextMessageID(), requestControls, entryDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, |
| | | attrList, null); |
| | | searchOperation.run(); |
| | | assertEquals(searchOperation.getSearchEntries().size(), 1); |
| | |
| | | import org.opends.server.types.Attributes; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.Modification; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | |
| | | InternalClientConnection.nextMessageID(),requestControls, |
| | | DN.valueOf("o=test"), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, attrs, null); |
| | | DirectoryServer.getWorkQueue().submitOperation(searchOperation); |
| | | |
| | |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("o=test"), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, filter, attrs, null); |
| | | DirectoryServer.getWorkQueue().submitOperation(searchOperation); |
| | | |
| | |
| | | import java.util.LinkedHashSet; |
| | | import java.util.List; |
| | | |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.core.DeleteOperation; |
| | |
| | | import org.opends.server.protocols.internal.InternalSearchOperation; |
| | | import org.opends.server.tools.LDAPModify; |
| | | import org.opends.server.types.*; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.testng.annotations.BeforeClass; |
| | | import org.testng.annotations.Test; |
| | | |
| | |
| | | .nextOperationID(), InternalClientConnection |
| | | .nextMessageID(), null, DN.valueOf(ruleDN), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | .nextOperationID(), InternalClientConnection |
| | | .nextMessageID(), null, DN.valueOf(ruleDN), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | null, null); |
| | | |
| | |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(DN.valueOf(userDN), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | attributes); |
| | | |
| | |
| | | import java.util.Set; |
| | | |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, DN.valueOf("o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | SearchFilter.createFilterFromString( |
| | | "(member=" + u1.toString() + ")"), |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(member=" + u1 + ")"), |
| | | null, null); |
| | | assertFalse(provider.isSearchable(rule, searchOperation, false)); |
| | | assertFalse(provider.isSearchable(rule, searchOperation, true)); |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), null, DN.valueOf("o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | SearchFilter.createFilterFromString( |
| | | "(member=" + u1.toString() + ")"), |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(member=" + u1 + ")"), |
| | | null, null); |
| | | assertFalse(provider.isSearchable(rule, searchOperation, false)); |
| | | assertFalse(provider.isSearchable(rule, searchOperation, false)); |
| | |
| | | import org.opends.server.protocols.internal.InternalSearchOperation; |
| | | import org.opends.server.types.Attribute; |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.Entry; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(DN.valueOf("o=test"), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), attrList); |
| | | assertEquals(searchOperation.getResultCode(), ResultCode.SUCCESS); |
| | | assertFalse(searchOperation.getSearchEntries().isEmpty()); |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(DN.valueOf("o=test"), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), attrList); |
| | | assertEquals(searchOperation.getResultCode(), ResultCode.SUCCESS); |
| | | assertFalse(searchOperation.getSearchEntries().isEmpty()); |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(DN.valueOf("o=test"), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), attrList); |
| | | assertEquals(searchOperation.getResultCode(), ResultCode.SUCCESS); |
| | | assertFalse(searchOperation.getSearchEntries().isEmpty()); |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(DN.valueOf("o=test"), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), attrList); |
| | | assertEquals(searchOperation.getResultCode(), ResultCode.SUCCESS); |
| | | assertFalse(searchOperation.getSearchEntries().isEmpty()); |
| | |
| | | import java.util.LinkedList; |
| | | import java.util.List; |
| | | |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation operation = conn.processSearch(DN.valueOf(entryDN), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString(filterStr), |
| | | null); |
| | | for (SearchResultEntry entry : operation.getSearchEntries()) { |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(ByteString.valueOf(""), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | LDAPFilter.decode("(objectClass=*)"), |
| | | new LinkedHashSet<String>()); |
| | | assertEquals(searchOperation.getResultCode(), ResultCode.SUCCESS); |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(ByteString.valueOf(""), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | LDAPFilter.decode("(objectClass=*)"), |
| | | new LinkedHashSet<String>(), searchListener); |
| | | assertEquals(searchOperation.getResultCode(), ResultCode.SUCCESS); |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(DN.rootDN(), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | new LinkedHashSet<String>()); |
| | | assertEquals(searchOperation.getResultCode(), ResultCode.SUCCESS); |
| | |
| | | InternalClientConnection.getRootConnection(); |
| | | InternalSearchOperation searchOperation = |
| | | conn.processSearch(DN.rootDN(), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), |
| | | new LinkedHashSet<String>(), searchListener); |
| | | assertEquals(searchOperation.getResultCode(), ResultCode.SUCCESS); |
| | |
| | | import org.opends.server.tools.LDAPReader; |
| | | import org.opends.server.tools.LDAPWriter; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.RawAttribute; |
| | | import org.opends.server.types.RawModification; |
| | | import org.testng.annotations.BeforeClass; |
| | |
| | | SearchRequestProtocolOp searchRequest = |
| | | new SearchRequestProtocolOp(ByteString.valueOf("o=test"), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, 0, false, |
| | | LDAPFilter.decode("(objectClass=*)"), |
| | | new LinkedHashSet<String>()); |
| | |
| | | import java.util.LinkedHashSet; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.protocols.ldap.LDAPFilter; |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), new ArrayList<Control>(), |
| | | ByteString.empty(), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, |
| | | false, LDAPFilter.decode("(objectClass=*)"), |
| | | new LinkedHashSet<String>(), null); |
| | | } |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), new ArrayList<Control>(), |
| | | ByteString.empty(), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, |
| | | false, LDAPFilter.decode("(objectClass=*)"), |
| | | new LinkedHashSet<String>(), |
| | | new TestInternalSearchListener()); |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), new ArrayList<Control>(), |
| | | DN.rootDN(), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, |
| | | false, searchFilter, |
| | | new LinkedHashSet<String>(), null); |
| | | } |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), new ArrayList<Control>(), |
| | | DN.rootDN(), SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, |
| | | false, searchFilter, |
| | | new LinkedHashSet<String>(), |
| | | new TestInternalSearchListener()); |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.empty(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, |
| | | LDAPFilter.decode("(objectClass=*)"), |
| | | new LinkedHashSet<String>(), null); |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.empty(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, |
| | | LDAPFilter.decode("(objectClass=*)"), |
| | | new LinkedHashSet<String>(), |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.empty(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, |
| | | LDAPFilter.decode("(objectClass=*)"), |
| | | new LinkedHashSet<String>(), null); |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.empty(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, |
| | | LDAPFilter.decode("(objectClass=*)"), |
| | | new LinkedHashSet<String>(), |
| | |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | new InternalSearchOperation(conn, conn.nextOperationID(), |
| | | conn.nextMessageID(), controls, targetDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | searchOperation.run(); |
| | |
| | | new InternalSearchOperation(conn, conn.nextOperationID(), |
| | | conn.nextMessageID(), controls, targetDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | searchOperation.run(); |
| | |
| | | import java.util.List; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.api.Backend; |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf("o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf("o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | SearchRequestProtocolOp searchRequest = |
| | | new SearchRequestProtocolOp(ByteString.valueOf("o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, |
| | | DereferenceAliasesPolicy.NEVER, 0, |
| | | 0, false, |
| | | LDAPFilter.decode("(uid=user.7)"), |
| | | attrs); |
| | |
| | | |
| | | SearchResultEntryProtocolOp searchResultEntry = null; |
| | | SearchResultDoneProtocolOp searchResultDone = null; |
| | | while (searchResultDone == null && message != null) |
| | | while (searchResultDone == null) |
| | | { |
| | | message = r.readMessage(); |
| | | switch (message.getProtocolOpType()) |
| | |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.tools.LDAPWriter; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.RawAttribute; |
| | | import org.opends.server.types.RawModification; |
| | | import org.opends.server.util.StaticUtils; |
| | |
| | | SearchRequestProtocolOp searchRequest = |
| | | new SearchRequestProtocolOp(ByteString.empty(), |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | LDAPFilter.decode("(objectClass=*)"), null); |
| | | ArrayList<Control> controls = new ArrayList<Control>(1); |
| | | controls.add(new LDAPControl(OID_MANAGE_DSAIT_CONTROL, true)); |
| | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ByteStringBuilder; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.LDAPException; |
| | | import org.testng.annotations.Test; |
| | | |
| | |
| | | /** |
| | | * Test class for LDAP Search protocol operation classes. |
| | | */ |
| | | @SuppressWarnings("javadoc") |
| | | public class TestSearchProtocolOp extends LdapTestCase |
| | | { |
| | | private ByteString baseDN = ByteString.valueOf("dc=example,dc=COM"); |
| | | private SearchScope scope = SearchScope.WHOLE_SUBTREE; |
| | | private DereferencePolicy dereferencePolicy = |
| | | DereferencePolicy.DEREF_IN_SEARCHING; |
| | | private DereferenceAliasesPolicy dereferencePolicy = |
| | | DereferenceAliasesPolicy.IN_SEARCHING; |
| | | private int sizeLimit = Integer.MAX_VALUE; |
| | | private int timeLimit = Integer.MAX_VALUE; |
| | | private boolean typesOnly = true; |
| | |
| | | import org.assertj.core.api.Assertions; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | op = connection.processSearch( |
| | | "cn=changelog", |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, // Size limit |
| | | 0, // Time limit |
| | | false, // Types only |
| | |
| | | return new SearchRequestProtocolOp( |
| | | ByteString.valueOf("cn=changelog"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | InternalSearchOperation searchOp = connection.processSearch( |
| | | TEST_ROOT_DN_STRING, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, // Size limit |
| | | 0, // Time limit |
| | | false, // Types only |
| | |
| | | final InternalSearchOperation searchOp = connection.processSearch( |
| | | "", |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | 0, // Size limit |
| | | 0, // Time limit |
| | | false, // Types only |
| | |
| | | |
| | | import org.assertj.core.api.Assertions; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.opends.server.TestCaseUtils; |
| | | import org.opends.server.api.SynchronizationProvider; |
| | |
| | | //Test the group membership control causes search to be skipped. |
| | | InternalSearchOperation internalSearch = |
| | | connection.processSearch(baseDN, WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, filter, null, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, filter, null, |
| | | requestControls, null); |
| | | assertEquals(internalSearch.getResultCode(), ResultCode.SUCCESS); |
| | | assertTrue(internalSearch.getSearchEntries().isEmpty()); |
| | |
| | | debugInfo("Query / 1 attrib"); |
| | | |
| | | op = connection.processSearch("dc=replicationChanges", |
| | | WHOLE_SUBTREE, DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | WHOLE_SUBTREE, DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | "(changetype=moddn)", singleton("newrdn")); |
| | | assertEquals(op.getResultCode(), ResultCode.SUCCESS); |
| | | assertEquals(op.getSearchEntries().size(), 1); |
| | |
| | | debugInfo("Query / All attribs"); |
| | | |
| | | op = connection.processSearch("dc=replicationChanges", |
| | | WHOLE_SUBTREE, DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | WHOLE_SUBTREE, DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | "(changetype=*)", singleton("*")); |
| | | assertEquals(op.getResultCode(), ResultCode.SUCCESS); |
| | | assertEquals(op.getSearchEntries().size(), 5); |
| | |
| | | import org.opends.server.protocols.internal.InternalSearchOperation; |
| | | import org.opends.server.protocols.ldap.LDAPFilter; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | | |
| | |
| | | new ArrayList<Control>(), |
| | | ByteString.valueOf("cn=gvrightstest,o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | |
| | | |
| | | package org.opends.server.schema; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.Control; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.Entry; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.types.SearchFilter; |
| | |
| | | import org.testng.annotations.BeforeClass; |
| | | import org.testng.annotations.Test; |
| | | |
| | | |
| | | /** |
| | | * This Test Class tests various collation matching rules. |
| | | */ |
| | |
| | | null, |
| | | ByteString.valueOf("uid=user,o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | null, |
| | | ByteString.valueOf("uid=user,o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | null, |
| | | ByteString.valueOf("uid=user,o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | | LDAPFilter. |
| | | decode("departmentnumber:1.3.6.1.4.1.42.2.27.9.4.49.1.1:=abc120"), |
| | | LDAPFilter.decode("departmentnumber:1.3.6.1.4.1.42.2.27.9.4.49.1.1:=abc120"), |
| | | null, null); |
| | | |
| | | searchOperation.run(); |
| | |
| | | null, |
| | | ByteString.valueOf("uid=user,o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | | LDAPFilter. |
| | | decode("carLicense:fr.2:=ebe2"), |
| | | LDAPFilter.decode("carLicense:fr.2:=ebe2"), |
| | | null, null); |
| | | |
| | | searchOperation.run(); |
| | |
| | | null, |
| | | ByteString.valueOf("uid=user,o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | | LDAPFilter. |
| | | decode("carLicense:fr.5:=ebe1"), |
| | | LDAPFilter.decode("carLicense:fr.5:=ebe1"), |
| | | null, null); |
| | | |
| | | searchOperation.run(); |
| | |
| | | null, |
| | | ByteString.valueOf("uid=user,o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | | LDAPFilter. |
| | | decode("departmentnumber:es.4:=abc111"), |
| | | LDAPFilter.decode("departmentnumber:es.4:=abc111"), |
| | | null, null); |
| | | |
| | | searchOperation.run(); |
| | |
| | | null, |
| | | ByteString.valueOf("uid=user,o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | | LDAPFilter. |
| | | decode("sn:en.6:=*u*bec"), |
| | | LDAPFilter.decode("sn:en.6:=*u*bec"), |
| | | null, null); |
| | | |
| | | searchOperation.run(); |
| | |
| | | new InternalSearchOperation(conn, InternalClientConnection.nextOperationID(), |
| | | InternalClientConnection.nextMessageID(), requestControls, |
| | | DN.valueOf("dc=example,dc=com"), SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString(searchFilter), |
| | | null, null); |
| | | |
| | |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.Entry; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.types.SearchResultEntry; |
| | |
| | | null, |
| | | ByteString.valueOf("cn=schema"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | null, |
| | | ByteString.valueOf("cn=test,o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | null, |
| | | ByteString.valueOf("cn=test,o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | null, |
| | | ByteString.valueOf("o=test"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | import org.opends.server.protocols.internal.InternalSearchOperation; |
| | | import org.opends.server.protocols.ldap.LDAPFilter; |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.types.SearchResultEntry; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | |
| | | null, |
| | | ByteString.valueOf("dc= example,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.ConditionResult; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.DereferencePolicy; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.opends.server.types.SearchResultEntry; |
| | |
| | | null, |
| | | ByteString.valueOf("dc=example,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | null, |
| | | ByteString.valueOf("dc=example,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | null, |
| | | ByteString.valueOf("dc=example,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | null, |
| | | ByteString.valueOf("dc=example,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | null, |
| | | ByteString.valueOf("dc=example,dc=com"), |
| | | SearchScope.WHOLE_SUBTREE, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, |
| | | DereferenceAliasesPolicy.NEVER, |
| | | Integer.MAX_VALUE, |
| | | Integer.MAX_VALUE, |
| | | false, |
| | |
| | | import java.util.concurrent.CopyOnWriteArraySet; |
| | | |
| | | import org.forgerock.opendj.ldap.ByteString; |
| | | import org.forgerock.opendj.ldap.DereferenceAliasesPolicy; |
| | | import org.forgerock.opendj.ldap.ModificationType; |
| | | import org.forgerock.opendj.ldap.ResultCode; |
| | | import org.forgerock.opendj.ldap.SearchScope; |
| | |
| | | InternalSearchOperation searchOperation = new InternalSearchOperation(conn, |
| | | nextOperationID(), nextMessageID(), controls, targetDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | searchOperation.run(); |
| | |
| | | InternalSearchOperation searchOperation = new InternalSearchOperation(conn, nextOperationID(), |
| | | nextMessageID(), controls, targetDN, |
| | | SearchScope.BASE_OBJECT, |
| | | DereferencePolicy.NEVER_DEREF_ALIASES, 0, 0, false, |
| | | DereferenceAliasesPolicy.NEVER, 0, 0, false, |
| | | SearchFilter.createFilterFromString("(objectClass=*)"), null, |
| | | null); |
| | | searchOperation.run(); |