Thursday, April 17, 2014

LDAP Explained

StringAttribute type
DCdomainComponent
CNcommonName
OUorganizationalUnitName
OorganizationName
STREETstreetAddress
LlocalityName
STstateOrProvinceName
CcountryName
UIDuserid

The following are examples of distinguished names.
CN=Jeff Smith,OU=Sales,DC=Fabrikam,DC=COM
CN=Karen Berge,CN=admin,DC=corp,DC=Fabrikam,DC=COM
The following table lists reserved characters that cannot be used in an attribute value without being escaped.
Note  See the guidance below the table about using the escape character with these reserved characters.
Reserved characterDescriptionHex value
space or # character at the beginning of a string
space character at the end of a string
,comma0x2C
+plus sign0x2B
"double quote0x22
\backslash0x5C
<left angle bracket0x3C
>right angle bracket0x3E
;semicolon0x3B
LFline feed0x0A
CRcarriage return0x0D
=equals sign0x3D
/forwards slash0x2F

If a reserved character is part of an attribute value, it must be escaped by prefixing it with a backslash (\) in the attribute string. If an attribute value contains other reserved characters, such as the equals sign (=) or non-UTF-8 characters, it must be encoded in hexadecimal by replacing the character with a backslash followed by two hex digits.
The following are examples of some distinguished names that include escaped characters. The first example is an organizational unit name with an embedded comma; the second example is a value containing a carriage return.
CN=Litware,OU=Docs\, Adatum,DC=Fabrikam,DC=COM
CN=Before\0DAfter,OU=Test,DC=North America,DC=Fabrikam,DC=COM

No comments:

Post a Comment