Hi All, To change the password in active directory I have used the following code but i`m getting exception saying as Unknown error (0x80005000). Please some body help me in solving out this problem. I tried to run the "LADP://192.168.1.15” in run cmd but its
giving an error msg saying as --------------------------- Find People --------------------------- An error occurred while performing the search. Your computer, your Internet service provider, or the specified directory service may be disconnected. Check your
connections and try again. Operations Error --------------------------- OK --------------------------- Is that exception because of this error or it is something else suggest me how can I sole this . This is my code: ADPath = "LADP://192.168.1.15”; DirectoryEntry
oDE; oDE = new DirectoryEntry(ADPath, ADUser, ADPassword, AuthenticationTypes.Secure); try { // Change the password. oDE.Invoke("ChangePassword", new object[]{strOldPassword, strNewPassword}); } catch (Exception excep) { Debug.WriteLine("Error changing password.
Reason: " + excep.Message); }
Dyamanagowda
Member
5 Points
9 Posts
Change user password in active directory.
Dec 17, 2008 05:43 AM|LINK