简体   繁体   English

如何从LegacyExchangeDN地址获取交换用户?

[英]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.

相关问题 如何从他们的Exchange电子邮件地址获取Active Directory用户名? - How can I get Active Directory username from their Exchange email address? C# VSTO Outlook 插件 - 如何使用传出 Z0C83ZEFA57C7831CEB7B24 获取发送方的 email 地址? - C# VSTO Outlook plugin - How can I get the email address of the sender of an outgoing email using Exchange? 通过交换从用户删除SIP地址 - Remove a SIP address from user via exchange 从 Exchange 身份验证用户检索 email 地址 - Retrieved the email Address from the Exchange authenticated user Outlook如何从Exchange Server获取地址列表? - How does Outlook get the address lists from Exchange Server? 如何从C#中的用户客户端获取IP地址? - How can I get the IP address from the user client in C#? 如何从没有默认邮箱的用户(我没有默认邮箱)的Exchange Server获取邮箱电子邮件详细信息? - How can I get the mailbox email details from Exchange Server for a user which don't have default mailbox (I have no default mailbox)? 如何获取用户的桌面完整地址? - how can i get the desktop full address of user? Outlook帐户-如何获取Exchange电子邮件地址? - Outlook Accounts - How to get the Exchange Email address? 如何以编程方式修改Exchange用户的“邮箱功能”? - How can i modify 'mailbox features' on an Exchange user programatically?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM