Last post Mar 20, 2009 12:36 PM by avci
Mar 19, 2009 06:57 PM|avci|LINK
Hello, I am using full permitted admin username and password.
Programatically, in active directory's Users folder I need to create/delete contacts and
modify current users/contacts.
I can create/delete contacts but I can not modify contacts and users. I get
General access denied error
In order to run the application locally, I use
AuthenticationTypes.None... (I don't really know why, otherwise it gives error.) and locally I can modify users but I can not modify contacts.
Any help will be appreciated.
Mar 20, 2009 03:34 AM|johram|LINK
Unless you are in the same domain as you're trying to connect to, you need to prefix your username with the domain name, like so:
conn.Username = "domain\\username";
Mar 20, 2009 12:36 PM|avci|LINK
It's been solved, a stupid code error was causing the problem.
After creating the directory entry, i was suppose to put it in directorySearcher object but I forgot.
It's working now. Thank you for your advice though.