C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Windows Authentication - Login Dialog - Not showing


Posted Date: 30 Aug 2008      Total Responses: 3

Posted By: Krishnamoorthy       Member Level: Bronze     Points: 1


Hi,

I'm building an intranet net application.

All the users are in same domain and in same network.

Now, whenever a user access my application it SHOULD show the window authentication login dialog box.

I tried the below,

In IIS setting I uncheked all the directiory security authentication sections and selected ONLY Intergrated window authentication check box

Web.Config:
<authentication mode="Windows"/>
<authorization>
<allow users ="?"/>
</authorization>

STILL THE APPLICATION IS NOT SHOWING THE WINDOWS LOGIN DIALOG.
HOW TO ACHIEVE THIS? Kindly help.




Responses

Author: Ritesh N. Jain    02 Sep 2008Member Level: GoldRating:     Points: 1
replace <allow users ="?"/> with <deny users ="?"/> and check if its work or not.



Author: Krishnamoorthy    03 Sep 2008Member Level: BronzeRating:     Points: 6
Before posting into a forum anybody will make all possibilties,
to find a better solution.

You are telling me to change it with "deny".

Believe me, before posting here, I have tried all the combinations of "allow" and "deny" even with IIS settings also.

I THINK "Integrate Window Authentication" WILL NOT SHOW ANY DIALOG AND IT WILL ONLY TAKE THE LOGGED IN CREDENTIALS (OR BASED ON IIS SETTING CRENTIALS) ONLY. "?" MEANS "ANONYMUS" THATS IT!!!. ONLY BASIC OR DIGEST WILL POPUP A DIALOG.

If I'm wrong, I bet you, can you take it as challenge and get solution for the above stated problem?



Author: Ritesh N. Jain    03 Sep 2008Member Level: GoldRating:     Points: 6
it's good to know you did your r&d before posting here unlike other memeber do.
well as far your query is concern,the main idea behind windows authentication is to make sure all the user accessing webapplication (that implements Windows Authentication )in intranet environment must be a valid memeber of Domain user.Hence if any user is already loged-In into the Domain/Intranet using his domain account and trying to access your application than IIS itself will verify the user's credential and if he belong to domain user group he will not get "Authentication Dialog" box.

As oppose consider the case where someone came to your office and just plug in his laptop into your network and login into his local machine account and try to access your application ofcourse he will prompt for "Authentication Dialog".

I am sure you must be aware of this but in case not just check it out value of User.Identity.Name whenever you get request from any user who is logged in using domain account,i am sure you will get proper valid user name for this.



Post Reply
You must Sign In to post a response.
Next : Footer Template
Previous : Setting border color for iframe
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

it outsourcing

Contact Us    Privacy Policy    Terms Of Use