using System;
using System.DirectoryServices;
class MainClass
{
public static void Main()
{
DirectoryEntry de = new DirectoryEntry(
"LDAP://192.168.1.100/dc=ispnet1, dc=net");
string ldappath = de.Path;
Console.WriteLine("The LDAP path is: {0}", ldappath);
de.Close();
}
}
Output
The LDAP path is: LDAP://192.168.1.100/dc=ispnet1, dc=net