In C #, The DirectoryEntry component application instance DirectoryEntry class encapsulates nodes or objects in the Active Directory hierarchy. You can use this class to bind to objects or read and update attributes. Figure 1 shows the
Obtain or set this Directoryentry.
Namespace:System. directoryservicesProgramSet:System. directoryservices(InSystem. directoryservices. dllMedium)
Syntax
C #
[Settingsbindableattribute
Summary
The system. directoryservices. directoryentry component provides access to active directory. This article takes two simple applets as an example to illustrate how to use this component to view the information of each node in the
Use LDAP to find the ADGroupy to which the AD User belongs
1 /// 2 // obtain the SID of the user group
3 ///
4 // Comes From http://netwenchao.cnblogs.com
5 ///
6 public static IEnumerable GetGroupSidsOfUser (string userLoginName, ADOperator
Asp. NET connection to the LDAP databaseThe function of obtaining user information encapsulated in the DAL layerFind user information by user IDPublicdirectoryentry GetUser (string username){String path =
This is why I tried again a year and a half ago.
Development Environment: Window XPDevelopment Tool: Visual stutio 2003 (later use visual stutio 2005 to re-upload the code)Opening statement: VB. NETDevelopment Time: January
Starting from the source
First, Domino's LDAP service is configured to not be anonymous, otherwise it doesn't make sense.
Security, Internet Authentication is set to: More name transformations, lower security.
In this case, the username can be used in Domino's personal
Http://www.pc123.org/html/net/asp_net/200806/16_3101.html
First, let's take a look at what is active directory. I don't need to describe it. I can refer to the following URL or search for the Active Directory keyword in the. NET Help document.
Last blog I talked about the topic of ASP. NET Forms authentication, this time the blog will mainly introduce the ASP. NET Windows Authentication.Although forms authentication is widely used, it is also convenient to use Windows authentication if
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.