从LDAP服务器获取电子邮件列表 [英] Getting email list from LDAP server

查看:436
本文介绍了从LDAP服务器获取电子邮件列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

谁能告诉我如何使用MS Outlook样式的C#.Net 4.0从LDAP服务器获取电子邮件列表(例如在收件人"字段中键入名称"或电子邮件"时显示).
同时,如果用户从未使用过该电子邮件,则会提示该窗口,其中包含LDAP服务器中所有用户的列表.


在此先感谢..
Harish Reddy.

Hi Friends,

Can anyone please tell how to get the email list from the LDAP server using C#.Net 4.0 in MS Outlook style (like Displaying when we type the Name or Email in the TO field).
At the same time if the user never used that Email then it prompts the window with list of all users in the LDAP Server.


Thanks in Advance..
Harish Reddy.

推荐答案

DirectoryEntry条目= new DirectoryEntry("LDAP://ldap服务器名称");
DirectorySearcher Dsearch =新的DirectorySearcher(entry);
返回Dsearch.FindAll()
DirectoryEntry entry = new DirectoryEntry("LDAP://ldap server name");
DirectorySearcher Dsearch = new DirectorySearcher(entry);
return Dsearch.FindAll()


这篇关于从LDAP服务器获取电子邮件列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆