How to use the credentials of the logged in user?

  • Thread starter Thread starter Dumb Luck
  • Start date Start date
D

Dumb Luck

I have a web page that is published on the internal IIS server. This
web page is for common administrator actions like reset a user's
password. The problem is I don't know how to tell IIS or Visual Basic
or .....? to perform the actions using the credentials of the person
requesting the page. As it stands right now as soon as I click on the
reset password button it errors out because of: Access is denied.
(Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) . TIA
 
Make sure ASP.NET app's Authentication mode is "Windows", set
impersonate="true", and do not allow Anonymous access. This way,whoever
request the web page, ASP.NET will run with his user account. If the user is
member of a user gruop (domain admins, for example) that has right to manage
user account on the domain, then page will run through.
 
Back
Top