Solved

Customizing basic Authentication on IIS through ASP

Posted on 2004-04-19
6
345 Views
Last Modified: 2010-04-17
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

 
0
Comment
Question by:godkedar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 10

Expert Comment

by:D_M_D
ID: 10863065
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

0
 

Author Comment

by:godkedar
ID: 10863132
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

.

 
0
 
LVL 2

Expert Comment

by:Vaishali_chaudhry
ID: 10866432
There is something called Form Validation in ASP.NET...i am not if there is a similiar thing is ASP also.
0
 
LVL 10

Accepted Solution

by:
D_M_D earned 500 total points
ID: 10867967
I understand what your saying, but if you turn off anonymous access then you wont get the IUSR_COMPUTERNAME because anonymous access is turned off.  It only uses this account when anonymous access is on.

--------
D_M_D
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Difference between List and Array in Python 5 140
Bot application - advice 3 79
convert Systemjs to Webpack 3 121
Programming Language for Wordpress 7 84
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question