473,386 Members | 1,679 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,386 software developers and data experts.

Customizing windows authentication

Hi,

In windows authentication
1. Apart from user name and password, can we force the user to select
the domain name at the time of login through browser?.

2. In windows authentication
If user login fails, how to redirect the user to a customized error
page?

Jan 30 '07 #1
2 1018
1) No. In Windows Authentication, the browser automatically transmits the
credentials the user supplied when they logged into their machine. You either
get authenticated or you don't.
2) Look into the Custom Error Pages with web.config. I have never done it,
but you could probably provide a page for the Windows Auth Unauthorized error.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Ram..." wrote:
Hi,

In windows authentication
1. Apart from user name and password, can we force the user to select
the domain name at the time of login through browser?.

2. In windows authentication
If user login fails, how to redirect the user to a customized error
page?

Jan 30 '07 #2
On Jan 30, 1:11 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.comwrote:
1) No. In Windows Authentication, the browser automatically transmits the
credentials the user supplied when they logged into their machine. You either
get authenticated or you don't.
2) Look into the Custom Error Pages with web.config. I have never done it,
but you could probably provide a page for the Windows Auth Unauthorized error.
Peter
Peter, that is right, however you can tell to client browser, that

Response.StatusCode=401

and ask for login and password again.

To redirect an unauthorized request you can do following coding in
your global.asax

Sub Application_EndRequest(ByVal sender As Object, ByVal e As
EventArgs)
If Response.StatusCode = 401 Then
Response.ClearContent()
Response.WriteFile("/401.html")
End If
End Sub

Jan 30 '07 #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...
4
by: VR | last post by:
I am trying to embed a check box into a FlexGrid's cell, but having a problem when I start scrolling the grid. Here is my MyCheckBox class... class MyCheckBox : CheckBox { void Init (...
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: 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
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...
0
by: brianjadams | last post by:
I would like to be able to customize the ticket used after authenticating a user and customize the authentication call to use a web service. I assume this is possible, but I'm not sure where I...
1
by: =?Utf-8?B?bmF0YXNoYQ==?= | last post by:
Good morning, I'd like and realize an Intranet page, in an Active Directory domain, showing customized content based on AD logon identity of client user requesting page. Is there any...
4
by: Preben Zacho | last post by:
Hi there The scenario I got is this: I have created a Windows application in VS and I want to deploy it to another machine running Windows Vista. Since I have no control over this other machine,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.