2.3.4 Syntax Mapping

As mentioned in section 2.3.2, the content of the <ad:value> element is the value of the directory attribute (or synthetic attribute) represented as an XML value. For LDAP directory attributes, the choice of the XML syntax for this value (and thus, the corresponding textual representation of that XML value) is dependent on the attribute syntax of the LDAP directory attribute. This mapping is specified in the following table. LDAPSYN and XMLSYN refer to the variables of the same names used in section 2.3.2. The attribute syntaxes are as specified in [MS-ADTS] section 3.1.1.2.2.2.

LDAP attribute syntax

LDAPSYN

XML syntax (XMLSYN)

Boolean

Boolean

xsd:string

Enumeration

Enumeration

xsd:string

Integer

Integer

xsd:string

LargeInteger

LargeInteger

xsd:string

Object(Access-Point)

AccessPoint

xsd:string

Object(DN-String)

DNString

xsd:string

Object(OR-Name)

ORName

xsd:string

Object(DN-Binary)

DNBinary

xsd:string

Object(DS-DN)

DSDNString

xsd:string

Object(Presentation-Address)

PresentationAddress

xsd:string

Object(Replica-Link)

ReplicaLink

xsd:base64Binary

String(Case)

CaseString

xsd:string

String(IA5)

IA5String

xsd:string

String(NT-Sec-Desc)

NTSecurityDescriptor

xsd:base64Binary

String(Numeric)

NumericString

xsd:string

String(Object-Identifier)

ObjectIdentifier

xsd:string

String(Octet)

OctetString

xsd:base64Binary

String(Printable)

PrintableString

xsd:string

String(Sid)

SidString

xsd:base64Binary

String(Teletex)

TeletexString

xsd:string

String(Unicode)

UnicodeString

xsd:string

String(UTC-Time)

UTCTimeString

xsd:string

String(Generalized-Time)

GeneralizedTimeString

xsd:string

The LDAP directory attributes located on the LDAP rootDse do not have attribute syntaxes defined for them. Mappings between an implementation's rootDse attributes and XML syntaxes is implementation specific. <4>

For the synthetic attributes, the choice of XML syntax is as specified in the following table.

Synthetic attribute

XML syntax (XMLSYN)

ad:objectReferenceProperty

xsd:string

ad:container-hierarchy-parent

xsd:string

ad:distinguishedName

xsd:string

ad:relativeDistinguishedName

xsd:string