[英]How can I get exchange user from LegacyExchangeDN address?
so, i have a an active session and a GAL. 因此,我有一个活跃的会议和一个GAL。
i have an exchange address: /o=My-Org/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=My Name 我有一个交换地址: / o =我的组织/ ou =交换管理组(FYDIBOHF23SPDLT)/ cn =收件人/ cn =我的名字
and i want to get address entry from that address (eventually i'm trying to find the SMTP address). 而且我想从该地址获取地址条目(最终我正在尝试查找SMTP地址)。
the only thing i managed to do is this: 我唯一要做的是:
rcpAddress.Session.GetGlobalAddressList().AddressEntries[@"My Name"]
this got me the correct address, but this gave me the same result aswell: 这给了我正确的地址,但这也给了我相同的结果:
rcpAddress.Session.GetGlobalAddressList().AddressEntries[@"My Name"]
rcpAddress.Session.GetGlobalAddressList().AddressEntries[@"My Name gsdg"]
rcpAddress.Session.GetGlobalAddressList().AddressEntries[@"My Na"]
so this doesn't look like a great way of achiving it... i know that the above excahnge address is unique, and i'd like to search the entry from that. 因此,这看起来并不是实现它的好方法...我知道上面的地址是唯一的,我想从中搜索条目。
i can do a disgusting workaround and check if my result address equals to the input, but what if there are duplicate results - i can get the wrong one. 我可以做一个令人作呕的解决方法,检查我的结果地址是否等于输入,但是如果有重复的结果该怎么办-我可以得到错误的结果。
any help? 有什么帮助吗?
If you know the EX type address, you can programmatically construct the entry id; 如果您知道EX类型的地址,则可以以编程方式构造条目ID; its format is documented. 其格式已记录。
abFlags[0]: 00
abFlags[1]: 00
abFlags[2]: 00
abFlags[3]: 00
muid: MUIDEMSAB
ulVersion: 0x00000001
ulType: 0x00000000 (DT_MAILUSER)
szAddr: /o=Swiftpage/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=0b3e51186fb04360b84f67d65c35e23a-SomeUser
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.