Whats is this format called? "/o=First Organization/ou=First Administrative Group/cn=Recipients/cn=user"

Chad Harrison picture Chad Harrison · Sep 9, 2011 · Viewed 10.1k times · Source

What format is the following string called in regards to Microsoft Exchange?

/o=First Organization/ou=First Administrative Group/cn=Recipients/cn=user

I've seen this using LDAP, but now seeing it CDO 1.2.1 and ultimately trying to convert it to an email address like [email protected]. Thanks.

Answer

Henning Krause picture Henning Krause · Sep 9, 2011

It's called legacy Exchange distinguished name and is a remnant from Exchange 5.5.

You can either resolve this address using the ResolveNames method (http://msdn.microsoft.com/en-us/library/exchangewebservices.exchangeservicebinding.resolvenames(v=exchg.140).aspx) of the EWS Managed API, call the EWS WebService method ResolveName directly.

Another option is to use LDAP and search for the user object with the property legacyExchangeDN set to your address. Then, query the proxyAddress attribute and retrieve the one address which is prefixed with "SMTP:" (all uppercase).