LDAP Message


LDAP message is the fundamental Protocol Data Unit for LDAP Protocol Exchanges.

LDAP Message is the container that is used to hold all LDAP Requests and LDAP Result Codes.

LDAP Message are "officially" defined an IANA Registry as defined Internet Assigned Numbers Authority (IANA) Considerations for the Lightweight Directory Access Protocol (LDAP) by RFC 4520.

LDAP Message are in an IANA Registry at: LDAP Message Types

And we outline them below:

The elements of the LDAP Message include:

  • The message ID is a unique identifier that is used to correlate requests and responses. The client includes a message ID in the request and all response messages for that request will have the same message ID.
  • The LDAP Message is the container for the actual LDAP Message and LDAP Result Codes.
  • An optional set of LDAP Protocol Mechanisms may be used to provide additional information about the way that the request should be processed, or additional information about the response from the server.

LDAP Message in Basic Encoding Rules Format#

        LDAPMessage ::= SEQUENCE {
             messageID       MessageID,
             protocolOp      CHOICE {
                  bindRequest           BindRequest,
                  bindResponse          BindResponse,
                  unbindRequest         UnbindRequest,
                  searchRequest         SearchRequest,
                  searchResEntry        SearchResultEntry,
                  searchResDone         SearchResultDone,
                  searchResRef          SearchResultReference,
                  modifyRequest         ModifyRequest,
                  modifyResponse        ModifyResponse,
                  addRequest            AddRequest,
                  addResponse           AddResponse,
                  delRequest            DelRequest,
                  delResponse           DelResponse,
                  modDNRequest          ModifyDNRequest,
                  modDNResponse         ModifyDNResponse,
                  compareRequest        CompareRequest,
                  compareResponse       CompareResponse,
                  abandonRequest        AbandonRequest,
                  extendedReq           ExtendedRequest,
                  extendedResp          ExtendedResponse,
                  intermediateResponse  IntermediateResponse },
             controls       [0] Controls OPTIONAL }

More Information#

There might be more information for this subject on one of the following: