jspωiki
DNWithString

Overview#

DNWithString is a LDAP Microsoft Active Directory Syntax with an OID or 1.2.840.113556.1.4.904

DNWithStrings is also referred to as 2.5.5.14 and ADSTYPE_DN_WITH_STRING

DNWithString is defined in Draft-armijo-ldap-syntax-00 as:

DNWithString: 1.2.840.113556.1.4.904
        Encoded as a :
        DNWithString  = StringTag ':' Count ':' String ':' DN
        OctetTag = 'S' | 's'
        Count = positive decimal number, counting number of bytes in String
        String = <normally encoded (i.e. UTF8 for V3) string>  // Note: the number
        of bytes in the string encoding of the String is Count.

        DN = <normal string encoding of a DN>

        As an example, the string encoding of the combination of "test" and
        DC=Microsoft,DC=Com is

        B:4:test:DC=Microsoft,DC=Com

        As an example, the string encoding of the combination of XYZ (where X, Y,
        and Z all have two byte UTF-8 encodings) and DC=Microsoft,DC=Com is

        B:6:XYZ:DC=Microsoft,DC=Com
Note: Characters with multibyte UTF-8 encodings contribute more than one to the count

More Information#

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