Related to the book Inside Active Directory, ISBN 0-201-61621-1
Copyright (C) 2002 by Sakari Kouti
Version: December 21, 2001
Back to the book's Web site
| General | ADSI | OLE Automation Data Types (i.e., in VBScrip | LDAP | |||||||||||
| Category | Name Used in Inside Active Directory | oM-Syntax | attribute-Syntax | oMObjectClass | Count | Friendly String Syntax | ADsType Name | ADsType Value | Value | VarType | Comment | LDAP Type Name in Platform SDK | LDAP Type OID | RFC 2252 Name |
| Simple | Boolean | 1 | 2.5.5.8 | 54 | Boolean | ADSTYPE_BOOLEAN | 6 | 11 | VT_BOOL | True=-1, False=0 | LDAPTYPE_BOOLEAN | 1.3.6.1.4.1.1466.115.121.1.7 | Boolean | |
| Simple | Enumeration | 10 | 2.5.5.9 | 6 | INTEGER | ADSTYPE_INTEGER | 7 | 3 | VT_I4 | 4-byte signed int | LDAPTYPE_INTEGER | 1.3.6.1.4.1.1466.115.121.1.27 | INTEGER | |
| Simple | Integer | 2 | 2.5.5.9 | 149 | INTEGER | ADSTYPE_INTEGER | 7 | 3 | VT_I4 | 4-byte signed int | LDAPTYPE_INTEGER | 1.3.6.1.4.1.1466.115.121.1.27 | INTEGER | |
| Simple | Large integer (a.k.a. INTEGER8) | 65 | 2.5.5.16 | 66 | INTEGER8 | ADSTYPE_LARGE_INTEGER | 10 | 9 | VT_DISPATCH | IDispatch * | LDAPTYPE_INTEGER8 | 1.2.840.113556.1.4.906 | ||
| String | Case-ignore string (teletex) | 20 | 2.5.5.4 | 8 | CaseIgnoreString | ADSTYPE_CASE_IGNORE_STRING | 3 | 8 | VT_BSTR | OLE Automation string | LDAPTYPE_CASEIGNORESTRING | 1.2.840.113556.1.4.905 | ||
| String | Case-sensitive string (a.k.a. case-exact string) | 27 | 2.5.5.3 | 0 | CaseExactString | ADSTYPE_CASE_EXACT_STRING | 2 | 8 | VT_BSTR | OLE Automation string | LDAPTYPE_CASEEXACTSTRING | 1.2.840.113556.1.4.1362 | ||
| String | IA5 string | 22 | 2.5.5.5 | 7 | IA5String | ADSTYPE_CASE_IGNORE_STRING | 3 | 8 | VT_BSTR | OLE Automation string | LDAPTYPE_IA5STRING | 1.3.6.1.4.1.1466.115.121.1.26 | IA5 String | |
| String | NT security descriptor | 66 | 2.5.5.15 | 3 | ObjectSecurityDescriptor | ADSTYPE_NT_SECURITY_DESCRIPTOR | 25 | 9 | VT_DISPATCH | IDispatch * | LDAPTYPE_SECURITY_DESCRIPTOR | 1.2.840.113556.1.4.907 | ||
| String | Numeric string | 18 | 2.5.5.6 | 2 | NumericString | ADSTYPE_NUMERIC_STRING | 5 | 8 | VT_BSTR | OLE Automation string | LDAPTYPE_NUMERICSTRING | 1.3.6.1.4.1.1466.115.121.1.36 | Numeric String | |
| String | Octet string | 4 | 2.5.5.10 | 120 | OctetString | ADSTYPE_OCTET_STRING | 8 | 12 | VT_VARIANT | VARIANT * | LDAPTYPE_OCTETSTRING | 1.3.6.1.4.1.1466.115.121.1.40 | Octet String | |
| String | OID string | 6 | 2.5.5.2 | 20 | OID | ADSTYPE_CASE_IGNORE_STRING | 3 | 8 | VT_BSTR | OLE Automation string | LDAPTYPE_OID | 1.3.6.1.4.1.1466.115.121.1.38 | OID | |
| String | Printable string | 19 | 2.5.5.5 | 13 | PrintableString | ADSTYPE_PRINTABLE_STRING | 4 | 8 | VT_BSTR | OLE Automation string | LDAPTYPE_PRINTABLESTRING | 1.3.6.1.4.1.1466.115.121.1.44 | Printable String | |
| String | SID string | 4 | 2.5.5.17 | 8 | OctetString | ADSTYPE_OCTET_STRING | 8 | 12 | VT_VARIANT | VARIANT * | LDAPTYPE_OCTETSTRING | 1.3.6.1.4.1.1466.115.121.1.40 | Octet String | |
| String | Unicode string (a.k.a. directory string) | 64 | 2.5.5.12 | 298 | DirectoryString | ADSTYPE_CASE_IGNORE_STRING | 3 | 8 | VT_BSTR | OLE Automation string | LDAPTYPE_DIRECTORYSTRING | 1.3.6.1.4.1.1466.115.121.1.15 | Directory String | |
| Time | Generalized time string | 24 | 2.5.5.11 | 6 | GeneralizedTime | ADSTYPE_UTC_TIME | 9 | 7 | VT_DATE | date | LDAPTYPE_GENERALIZEDTIME | 1.3.6.1.4.1.1466.115.121.1.24 | Generalized Time | |
| Time | UTC time string | 23 | 2.5.5.11 | 4 | UTCTime | ADSTYPE_UTC_TIME | 9 | 7 | VT_DATE | date | LDAPTYPE_UTCTIME | 1.3.6.1.4.1.1466.115.121.1.53 | UTC Time | |
| Reference | Access point DN | 127 | 2.5.5.14 | \x2B0C0287731C00853E | 0 | AccessPointDN | ADSTYPE_CASE_IGNORE_STRING | 3 | 8 | VT_BSTR | OLE Automation string | LDAPTYPE_ACCESSPOINTDN | 1.3.6.1.4.1.1466.115.121.1.2 | Access Point |
| Reference | DN (a.k.a. distinguished name or DN String) | 127 | 2.5.5.1 | \x2B0C0287731C00854A | 92 | DN | ADSTYPE_DN_STRING | 1 | 8 | VT_BSTR | OLE Automation string | LDAPTYPE_DN | 1.3.6.1.4.1.1466.115.121.1.12 | DN |
| Reference | DN with binary (a.k.a. DN with octet string) | 127 | 2.5.5.7 | \x2A864886F7140101010B | 4 | DNWithBinary | ADSTYPE_DN_WITH_BINARY | 27 | 9 | VT_DISPATCH | IDispatch * | LDAPTYPE_DNWITHBINARY | 1.2.840.113556.1.4.903 | |
| Reference | DN with Unicode string | 127 | 2.5.5.14 | \x2A864886F7140101010C | 0 | DNWithString | ADSTYPE_DN_WITH_STRING | 28 | 9 | VT_DISPATCH | IDispatch * | 1.2.840.113556.1.4.904 | ||
| Reference | OR name | 127 | 2.5.5.7 | \x56060102050B1D | 0 | ORName | ADSTYPE_CASE_IGNORE_STRING | 3 | 8 | VT_BSTR | OLE Automation string | 1.2.840.113556.1.4.1221 | ||
| Reference | Presentation address | 127 | 2.5.5.13 | \x2B0C0287731C00855C | 1 | PresentationAddress | ADSTYPE_CASE_IGNORE_STRING | 3 | 8 | VT_BSTR | OLE Automation string | LDAPTYPE_PRESENTATIONADDRESS | 1.3.6.1.4.1.1466.115.121.1.43 | Presentation Address |
| Reference | Replica link | 127 | 2.5.5.10 | \x2A864886F71401010106 | 2 | OctetString | ADSTYPE_OCTET_STRING | 8 | 12 | VT_VARIANT | VARIANT * | LDAPTYPE_OCTETSTRING | 1.3.6.1.4.1.1466.115.121.1.40 | Octet String |
| 23 | 16 | 17 | 863 | 20 | 13 | 13 | 6 | 6 | 6 | 20 | ||||