This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
exchange:reporting_project:query_notes [2009/12/09 08:05] ben |
exchange:reporting_project:query_notes [2009/12/11 11:53] (current) ben |
||
---|---|---|---|
Line 19: | Line 19: | ||
"CN=102 Philosophy,OU=SIS,DC=ais,DC=columbia,DC=edu",102 Philosophy,102 Philosophy | "CN=102 Philosophy,OU=SIS,DC=ais,DC=columbia,DC=edu",102 Philosophy,102 Philosophy | ||
</code> | </code> | ||
- | |||
===== Queries required ===== | ===== Queries required ===== | ||
Line 34: | Line 33: | ||
+ | ===== Common Name ===== | ||
+ | CN and DN are used universally throughout LDAP and Microsoft's AD infrastructure, including Exchange Server 2003 System Manager. The DN is more specific, and should be used for the unique identifier of an object. The CN is easier to parse, and can be used in a lot of cases. | ||
+ | |||
+ | The simplest LDAP lookup for a Common Name looks like: | ||
+ | <code> | ||
+ | (cn=102 Philosophy) | ||
+ | </code> | ||
+ | Multiple CN's can be looked up via the OR operator, "!", as such: | ||
+ | <code> | ||
+ | (!(cn=102 Philosophy)(cn=Ben Hall)) | ||
+ | </code> | ||