473,378 Members | 1,617 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Windows Authentication

Is there a way to use a web form as a means to authorize a user through
windows authentication?

For Example:

http://www.mysite.com/login.aspx. (anonymous access)

http://www.mysite.com/secure (secured by basic authentication)

Login.aspx would handle the authentication and redirect to
http://www.mysite.com/secure (and the user would not be asked for
credentials).

May 30 '06 #1
2 4448
Windows Authentication expects the user to have a valid domain / Active
Directory account. The user's browser automatically transmits the credentials
in response to the Windows Auth challenge, so there should not be any login
dialog if the app is set up correctly.

However, you can write an HTTPBasic or HTTPDigest Authentication module that
will work in a similar manner, and do your authentication against a database.

Here is one with VB.NET that I did:

http://www.eggheadcafe.com/articles/20040317.asp

and here is one in C#:

http://www.eggheadcafe.com/articles/20030701.asp

Both of these were based on excellent sample code by Greg Reinacker.

Hope that helps,
Peter

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Ian Jenkins, MCSD" wrote:
Is there a way to use a web form as a means to authorize a user through
windows authentication?

For Example:

http://www.mysite.com/login.aspx. (anonymous access)

http://www.mysite.com/secure (secured by basic authentication)

Login.aspx would handle the authentication and redirect to
http://www.mysite.com/secure (and the user would not be asked for
credentials).

May 30 '06 #2

"Ian Jenkins, MCSD" <jw*******@gmail.com> wrote in message
news:11********************@r44g2000cwb.googlegrou ps.com...
| Is there a way to use a web form as a means to authorize a user through
| windows authentication?
|
| For Example:
|
| http://www.mysite.com/login.aspx. (anonymous access)
|
| http://www.mysite.com/secure (secured by basic authentication)
|
| Login.aspx would handle the authentication and redirect to
| http://www.mysite.com/secure (and the user would not be asked for
| credentials).
|

A number of patterns & practices modules do cover this, start with:
http://msdn.microsoft.com/library/de...lained0001.asp
and read the docs refered to in "Additional Resources".

Willy.
May 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
1
by: sherkozmo | last post by:
I have my SQL 7.0 server set for Mixed security. I see now (finally) the advantages of having windows authentication security for windows groups. I do most of my developing in Access Projects...
1
by: Mark | last post by:
When our staff are logged into a computer on our domain, they're still prompted for their domain login and password to get into our ASP.NET application in Internet Explorer when using Windows...
4
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
6
by: mcollier | last post by:
I am running a Windows Server 2003 machine as my web server. I would like to use Windows authentication for connections to my SQL Server 2000 instance on a Windows 2000 server. I've read where...
6
by: Kevin Yu | last post by:
is it possible to for user to click a logout button to logout and when the user want to get into the system again, the user have to login again? Kevin
8
by: Nils Magnus Englund | last post by:
Hello, I am having trouble using Integrated Windows Authentication between our intranet server and our database server, both of which are on our local domain. Windows authentication works for...
10
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to...
7
by: Alice Wong | last post by:
I am setting up my Web ASP.net application to connect to Sql server using windows authentication. I set up IIS to have integrated windows authenication and sql to allow Windows authentication....
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.