I
itmanager
We have an ASP.NET application (v1.1) that requires some impersonation in
order to access network shares.
We have the following setting in the web.config file:
<identity impersonate="true" />
This allows the application to access network shares if the web site is
using Basic or Integrated Windows authentication; however, when using
Anonymous Authentication, it fails unless we also specify a user name and
password in clear text within the file; ie:
<identity impersonate="true"
userName="domain\user"
password="password" />
Due to security concerns, we do not want to specify this information in
clear text.
Is there a way to impersonate a particular user programmatically rather than
entering the value in the web.config file? Can this be done without resorting
to impersonation within a service?
Thanks for any assistance.
order to access network shares.
We have the following setting in the web.config file:
<identity impersonate="true" />
This allows the application to access network shares if the web site is
using Basic or Integrated Windows authentication; however, when using
Anonymous Authentication, it fails unless we also specify a user name and
password in clear text within the file; ie:
<identity impersonate="true"
userName="domain\user"
password="password" />
Due to security concerns, we do not want to specify this information in
clear text.
Is there a way to impersonate a particular user programmatically rather than
entering the value in the web.config file? Can this be done without resorting
to impersonation within a service?
Thanks for any assistance.