if(DirectoryEntry.Exists("LDAP://192.168.1.1"))
DirectoryEntry directoryEntry = new DirectoryEntry("LDAP://192.168.1.1")
LdapConnection connection = new LdapConnection(new LdapDirectoryIdentifier("192.168.1.1")); connection.AuthType = AuthType.Basic; NetworkCredential credential = new NetworkCredential("a", '1"); connection.Credential = credential; connection.Timeout = new TimeSpan(1000); connection.Bind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)