如何在asp.net的窗口身份验证应用程序中获取ADGroup用户的详细信息? [英] How to get ADGroup users Details in window Authentication application in asp.net?

查看:82
本文介绍了如何在asp.net的窗口身份验证应用程序中获取ADGroup用户的详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在asp.net中是新用户,我在这个texbox用户中有一个文本框和一个按钮,可以输入已经添加到此ADgroup(活动目录)中的任何用户的登录ID,然后单击按钮,我需要像先填写所有标签名称,姓氏和电子邮件地址,这是我在此情况下任何人都知道的要求,请通过代码告知我..


提前祝愿!
我建议您首先阅读有关 ^ ]名称空间.此命名空间包含 DirectoryEntry [使用.NET类和LDAP查询来查询Active Directory [^ ]
使用C#枚举Active Directory对象 [ Syed的文章 [ ^ ]中有关AD服务的包装API的信息.这只是做事的另一种方式(可能更容易).祝你好运. :)


hi,
I''m in new in asp.net, I having one textbox and a button in this texbox user can enter login Id of any user already added in this ADgroup(Active Derectory) then click on button i need to fill all labels like first name,last name and Email address that''s it my requirement any one knows in this scenario pls let me know with code..


Advance Wishes!!
Ramesh

解决方案

I suggest you start by reading about System.DirectoryServices[^] namespace first. This namespace contains the DirectoryEntry[^] class that you will be using in accessing the properties of the user objects of your Active Directory. The following are articles that you can use to start coding using the above-mentioned class. They have code samples too.
Querying Active Directory using .NET classes and LDAP queries[^]
Enumerating Active Directory Objects using C#[^]

Once you get familiar with it, you may also want to read Syed''s article[^] about a wrapper API for AD services. It''s just another way(probably easier) of doing things. Good luck. :)


这篇关于如何在asp.net的窗口身份验证应用程序中获取ADGroup用户的详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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