Active Directory: Disable *another* users account

C

catherine

Hi, I am trying to work out how I can disable / enable **another**
users Active Directory account not my own via C#.

If I create a directory entry like so I need to know the other users
password befoew I can do anything with the user. Obviously I will not
know this information

DirectoryEntry de = new DirectoryEntry();
de.Path = "LDAP://192.168.0.1/
CN=Users;DC=DEVELOPMENTDOMAIN";
de.Username = userName;
de.Password = password;

So, can someone please tell me how I can/ if it's possible to disable/
enable another users account via C#?

Thanks
Catherine
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top