Overview#
SearchRequest is a LDAP Message used to identify entries in the DSA that match a given set of criteria.SearchRequest MAY return zero or more entries, and also zero or more referrals.
The SearchRequest LDAP Message is defined as follows:
SearchRequest ::= [APPLICATION 3] SEQUENCE {
    baseObject      LDAPDN,
    scope           ENUMERATED {
        baseObject              (0),
        singleLevel             (1),
        wholeSubtree            (2),
    ...  },
    derefAliases    ENUMERATED {
        neverDerefAliases       (0),
        derefInSearching        (1),
        derefFindingBaseObj     (2),
        derefAlways             (3) },
    sizeLimit       INTEGER (0 ..  maxInt),
    timeLimit       INTEGER (0 ..  maxInt),
    typesOnly       BOOLEAN,
    filter          Filter,
    attributes      AttributeSelection 
    } 
 - The baseDN, which specifies the location in the DIT in which to perform the search.
 - The LDAP Search Scope, which specifies the scope of entries at or below the base DN to consider when processing the search.
 - The Dereference Policy to use if any aliases are encountered during processing.
 - The size limit, which specifies the maximum number of entries that should be returned from the search (or zero if there should not be any maximum number of entries).
 - The time limit, which specifies the maximum length of time in seconds that the server should spend processing the search (or zero if there should not be a maximum number of entries).
 - The TypesOnly Flag, which indicates whether the entries returned should include attribute types only or both types and values.
 - The LDAP SearchFilter, which specifies the criteria to use to identify matching entries.
 - The AttributeSelection that indicate which attributes should be included in matching entries, or an empty list to indicate that all User Attribute should be returned.
 
Search Responses#
There are three types of result elements that can be returned in response to a search request:- zero or more SearchResultEntry
 - zero or more SearchResultReference
 - exactly one SearchResultDone message.
 
Any SearchResultEntry may be read.
More Information#
There might be more information for this subject on one of the following:- ACL (eDirectory Attribute)
 - ANR attribute set
 - Access Log
 - Account Usability Request Control
 - Active Directory Groups
 - Active Directory RISK Related Searches
 - Alias
 - AllowedAttributesEffective
 - Ambiguous Name Resolution
 - AttributeSelection
 - Back-end
 - BaseDN
 - BaseObject
 - Best Practices For LDAP Naming Attributes
 - Chaining
 - Create Read Update Delete
 - DS_FLAG
 - Dereference Policy
 - Determine LDAP Server Vendor
 - DirXML-DriverStartOption
 - Directory Synchronization Control
 - Distinguished Name Case Sensitivity
 - Entry Change Notification Control
 - ExtensibleMatch
 - FLAIM Attribute Containerization
 - FLAIM checkpoint
 - FilteredReplicaUsage
 - Global Catalog
 - Glossary Of LDAP And Directory Terminology
 - Join Request and Result Controls
 - LDAP 4
 - LDAP Assertion Control
 - LDAP Message
 - LDAP Post-Read Control
 - LDAP Pre-Read Control
 - LDAP Query Basic Examples
 - LDAP Query Examples
 - LDAP Referral
 - LDAP Request
 - LDAP Result Codes
 - LDAP Search Filters Using with non-standard Characters
 - LDAP Search Scopes
 - LDAP SearchFilters
 - LDAP Searches
 - LDAP and Global Catalog
 - LDAP ping
 - LDAP policy in Active Directory
 - LDAPSEARCH
 - LDAP_ADMINLIMIT_EXCEEDED
 - LDAP_FILTER_ERROR
 - LDAP_MATCHING_RULE_DN_WITH_DATA
 - LDAP_SERVER_BATCH_REQUEST_OID
 - LDAP_SERVER_EXTENDED_DN_OID
 - LDAP_SERVER_SD_FLAGS_OID
 - LDAP_SIZELIMIT_EXCEEDED
 - LDAP_TIMELIMIT_EXCEEDED
 - Lightweight Directory Access Protocol (LDAP) Content Synchronization Operation
 - LocalEntryID
 - Manage DSA IT Control
 - MatchingRule
 - MaxActiveQueries
 - MaxPageSize
 - MaxQueryDuration
 - MsDS-UserPasswordExpiryTimeComputed
 - NDSRightsToMonitor
 - Ndstrace
 - Ndstrace Log Searches
 - Netlogon attribute
 - OperationalAttribute
 - Oracle SQL To Access LDAP
 - Persistent Search Control
 - Resource Action
 - RootDSE Example
 - SOAPDSMLDriver
 - Search Responses
 - SearchGuide
 - SearchResultDone
 - SearchResultEntry
 - SearchResultReference
 - SearchTimeLimit
 - Simple Paged Results Control
 - SingleLevel
 - SizeLimit
 - SubordinateSubtree
 - TimeLimit
 - TypesOnly Flag
 - Unindexed Search
 - UserApplications
 - Virtual List View Control
 - WholeSubtree
 - XDAS Account Management