Compare Request

The LDAP compare operation can be used to determine whether a specified entry contains a given attribute value. The compare request protocol op is defined as follows:

CompareRequest ::= [APPLICATION 14] SEQUENCE 
    entry           LDAPDN,
    ava             AttributeValueAssertion 

AttributeValueAssertion ::= SEQUENCE 
    attributeDesc   AttributeDescription,
    assertionValue  AssertionValue } 

The elements of the request include:

  • The DN of the entry in which the comparison is to be made.
  • The name of the attribute in which the comparison is to be made.
  • The assertion value to try to find in the specified attribute.

The response to an LDAP compare operation is an LDAP Result element consisting of an Compare Response.

More Information#

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