C# - 查找Active Directory用户的所有电子邮件地址
问题描述:
我试图让所有相关的给定的AD用户的电子邮件地址。
I'm trying to get all the email addresses associated to a given AD user.
有关用户我有域名和登录名(前域\用户名),我该广告存储的电子邮件地址:
For the user I have the domain and the login name (ex. DOMAIN\UserName) and I the AD is storing the email addresses in:
- 邮件属性。
- 在
代理地址
属性。
- The mail attribute.
- In
proxyAddresses
attributes.
到目前为止,我不知道是什么的C#API用于连接到AD,以及如何正确的用户筛选来获取所有的电子邮件地址。我使用.NET 3.5。
So far, I don't know what C# API to use to connect to the AD, and how to properly filter by the user to fetch all the email addresses. I'm using .NET 3.5.
感谢你。