I am trying to change the Impersonate=True (and giving a hard coded user/pw for AD) in web.config so that one of my pages can change the computer description in AD.
Since the users of the application have access to change this with their OWN accounts, how can I program the web.config (or page) to just use the credentials of the person using the page, eliminating the need for the account to be in web.config?
I tried commenting out the Impersonate section but received an Access Denied message.
data1025
Member
11 Points
32 Posts
Accessing AD without Impersonate
Oct 29, 2012 02:54 PM|LINK
Hello,
I am trying to change the Impersonate=True (and giving a hard coded user/pw for AD) in web.config so that one of my pages can change the computer description in AD.
Since the users of the application have access to change this with their OWN accounts, how can I program the web.config (or page) to just use the credentials of the person using the page, eliminating the need for the account to be in web.config?
I tried commenting out the Impersonate section but received an Access Denied message.
I am using VB Asp.Net on Visual Studio 2008 SE.
Thank you,
Eric
geric philip
Member
236 Points
44 Posts
Re: Accessing AD without Impersonate
Nov 05, 2012 04:24 AM|LINK
Hi
You could refer this link about this problem - http://stackoverflow.com/questions/3194526/facing-problem-while-accessing-active-directory-in-asp-net-without-impersonate.
hope it helpful.
Regards