Link to home
Start Free TrialLog in
Avatar of godkedar
godkedar

asked on

Customizing basic Authentication on IIS through ASP

Hello All,

this is a kind of urgent question that i need to solve as soon as possible.

I am working on a website development (using ASP and IIS), which interacts with a Microsoft RAIS server.before any user, hits the website,i need to authenticate his credentials ( userID and passsword) with the "Authenticated user group", which is defined on the IIS server.
For this, one best way is to use the Basic Authentication provided by IIS.
But I dont want to show the same old Dialog box provided by IIS, when the user hits the website.
I want to customize that to a HTML form control, and handle the authentication / logon in ASP itself.
The authentication is very necessary because once the user is authenticated, and logs into the website, Microsoft RAIS server (Its the product of microsoft, used for automating the network administritative tasks) uses the user's credentials and uses it to show some important information on the website.
Please let me know

thanks

 
Avatar of D_M_D
D_M_D

You can turn off anonymous logon thru IIS and use ServerVariables to get the user logon info..

Request.ServerVariables("LOGON_USER")

or

Request.ServerVariables("AUTH_USER")

--------
D_M_D

Avatar of godkedar

ASKER

If I turn off anonymous logon thru IIS and use ServerVariables to get the user logon info..
then it will give me the IUser_..(which is an anonymous logon) account which is set for the IIS server.
i guess i should be more clear about my question
i want to allow the user to login with his own account( not the anynymous), by turning on the Basic Authentication.
But at the same time, i dont want to show the WINNT logon dialog box which is by default shown to the user, when he hits my website.
Instead of that, i want the user to see, an HTML form, which will have 2 input fields.
And as soon as the user submits this information, he should get authenticated with the permissions that his account has.
This whole process should be executed from ASP, and then he will be able to see the consecutive web pages

.

 
There is something called Form Validation in ASP.NET...i am not if there is a similiar thing is ASP also.
ASKER CERTIFIED SOLUTION
Avatar of D_M_D
D_M_D

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial