jspωiki
DNWithString

Overview#

DNWithString, DN-String, ADSTYPE_DN_WITH_STRING, 1.2.840.113556.1.4.904 and 2.5.5.14 all appear to be a Microsoft Active Directory Syntax for DN Syntax which is the same as 1.3.6.1.4.1.1466.115.121.1.12

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: