Bind Object : Bind « Directory Services « C# / CSharp Tutorial






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();
   }
}
The LDAP path is: LDAP://192.168.1.100/dc=ispnet1, dc=net








34.1.Bind
34.1.1.Directory Binding
34.1.2.Bind Object
34.1.3.Anonymous bind
34.1.4.Binding use a specified user
34.1.5.Simple Bind: Use ASCII