Csharp/CSharp Tutorial/Directory Services/Password — различия между версиями

Материал из .Net Framework эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 15:20, 26 мая 2010

Change password

<source lang="csharp">using System; using System.DirectoryServices; using ActiveDs; class MainClass {

 [STAThread]
 static void Main(string[] args)
 {
   string Path = "LDAP://dsaddom.nttest.microsoft.ru: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();
 }

}</source>