Change password : Password : Directory Services C# Examples


C# Examples » Directory Services » Password »

 

Change password









    
using  System;
using  System.DirectoryServices;
using  ActiveDs;

class  MainClass
{
    
    [STAThread]
    static  void  Main(string[]  args)
    {
        string  Path  =  "LDAP://dsaddom.nttest.microsoft.com:636/CN=Welby,OU=gregmcb,DC=dsaddom,DC=nttest,DC=microsoft,DC=com";
        string  User  =  "user\\pass";
        string  Password  =  "pass";
        DirectoryEntry  Entry  =  new  DirectoryEntry(Path,  User,  Password);
        Entry.Close();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Directory Services
» Password