C# - 查找Active Directory用户的所有电子邮件地址 [英] C# - Find all email addresses for an Active Directory user
本文介绍了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.
感谢你。
推荐答案
http://blog.lozanotek.com/articles/149.aspx线
http://lozanotek.com/blog/articles/149.aspx
这篇关于C# - 查找Active Directory用户的所有电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文