Platform SDK: Active Directory, ADSI, and Directory Services

Mapping LDAP Types to ADSTYPEs

The ADSTYPEENUM enumeration defines data types used in ADSI. These data types can be mapped to appropriate LDAP counterparts. The following table presents such mapping.

ADSTYPE Data Type LDAP Data Type
ADSTYPE_BOOLEAN LDAPTYPE_BOOLEAN
ADSTYPE_CASE_EXACT_STRING LDAPTYPE_CASEEXACTSTRING
ADSTYPE_CASE_IGNORE_STRING LDAPTYPE_CASEIGNORESTRING

LDAPTYPE_BITSTRING

LDAPTYPE_DIRECTORYSTRING

LDAPTYPE_COUNTRYSTRING

LDAPTYPE_IA5STRING

LDAPTYPE_OID

LDAPTYPE_TELEPHONENUMBER

LDAPTYPE_ATTRIBUTETYPEDESCRIPTION

LDAPTYPE_OBJECTCLASSDESCRIPTION

ADSTYPE_CASE_IGNORE_STRING LDAPTYPE_POSTALADDRESS

LDAPTYPE_DELIVERYMETHOD

LDAPTYPE_ENHANCEDGUIDE

LDAPTYPE_FACSIMILETELEPHONENUMBER

LDAPTYPE_GUIDE

LDAPTYPE_NAMEANDOPTIONALUID

LDAPTYPE_PRESENTATIONADDRESS

LDAPTYPE_TELEXNUMBER

LDAPTYPE_DSAQUALITYSYNTAX

LDAPTYPE_DATAQUALITYSYNTAX

LDAPTYPE_MAILPREFERENCE

LDAPTYPE_OTHERMAILBOX

LDAPTYPE_ACCESSPOINTDN

LDAPTYPE_ORNAME

ADSTYPE_DN_STRING LDAPTYPE_DN
ADSTYPE_INTEGER LDAPTYPE_INTEGER
ADSTYPE_LARGE_INTEGER LDAPTYPE_INTEGER8
ADSTYPE_NT_SECURITY_DESCRIPTOR LDAPTYPE_SECURITY_DESCRIPTOR
ADSTYPE_NUMERIC_STRING LDAPTYPE_NUMERICSTRING
ADSTYPE_OCTET_STRING LDAPTYPE_OCTETSTRING

LDAPTYPE_CERTIFICATE

LDAPTYPE_CERTIFICATELIST

LDAPTYPE_CERTIFICATEPAIR

LDAPTYPE_PASSWORD

LDAPTYPE_TELETEXTERMINALIDENTIFIER

LDAPTYPE_AUDIO

LDAPTYPE_JPEG

LDAPTYPE_FAX

ADSTYPE_PRINTABLE_STRING LDAPTYPE_PRINTABLESTRING
ADSTYPE_UTC_TIME LDAPTPYE_UTCTIME
ADSTYPE_UTC_TIME LDAPTYPE_GENERALIZEDTIME
E_ADS_CANT_CONVERT_DATATYPE LDATYPE_UNKNOWN