ASP.NET how to access domain user information

zhaozj2021-02-16  92

// AD did not matter, not LDAP, you can also use WinNT service using System.DirectoryServices; DirectoryEntry objDE; objDE = new DirectoryEntry ( "WinNT: // servername", "username", "password", System.DirectoryServices.AuthenticationTypes .Serverbind; foreach (DirectoryEntry Chin Objde.children) Response.write (ch.path " ch.schemaclassname ");

转载请注明原文地址:https://www.9cbs.com/read-11198.html

New Post(0)