The LDAP-specific encoding for a value of the RDN syntax is given by the RelativeDistinguishedNameValue Generic String Encoding Rules (GSER) for ASN.1 rule.
RdnMatch when used to match components of DNs it is important to note that the LDAP-specific encoding of a DN reverses the order of the RDNs. So for the DN represented in LDAP as "cn=Steven Legg,o=Adacel,c=AU", the RDN "cn=Steven Legg" corresponds to the component reference "3", or alternatively, "-1".!! LDAP Matching Rule RdnMatch The LDAP definition for the RdnMatch Matching Rule is: