Bind Object : Bind : Directory Services C# Examples


C# Examples » Directory Services » Bind »

 

Bind Object









    
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


HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Directory Services
» Bind