PC Review


Reply
Thread Tools Rate Thread

Customizing windows authentication

 
 
Ram...
Guest
Posts: n/a
 
      30th Jan 2007
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?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      30th Jan 2007
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?
>
>

 
Reply With Quote
 
Alexey Smirnov
Guest
Posts: n/a
 
      30th Jan 2007
On Jan 30, 1:11 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yabbadabbadoo.com> wrote:
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
customizing windows xp Tom Perry Windows XP Customization 3 21st Nov 2006 07:56 PM
Want overview for customizing some of the forms authentication logic brianjadams@gmail.com Microsoft ASP .NET 0 2nd Aug 2006 06:45 PM
SQL Server Authentication versus Windows Authentication supvine@gmail.com Microsoft ADO .NET 0 13th Jul 2006 10:13 PM
Basic Authentication v. Integrated Windows Authentication w/ Delegation Mark Microsoft ASP .NET 0 20th Jan 2004 03:13 PM
Windows authentication password in sql connection vs. sql "sa" authentication Chumley the Walrus Microsoft Dot NET 1 16th Dec 2003 08:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:09 AM.