Problem updating an AD user

E

egholm

I'm trying to update a user in my AD with the following code:

DirectoryEntry de = GetUserFromAD(user.Domain, user.LoginUserName);

if(ImpersonateValidUser("User", "Domain", "Password"))
{
de.Properties["givenName"].Value = "testtest";
de.CommitChanges();
}

I'm impersonating an user that has write-access to the AD.
My code dosen't throw any exception, but the changes never take effect.

Help
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top