How to use the credentials of the logged in user?

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
 
N

Norman Yuan

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.
 

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,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top