Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Customizing windows authentication

Reply
Thread Tools

Customizing windows authentication

 
 
Ram...
Guest
Posts: n/a
 
      01-30-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
 
      01-30-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
 
      01-30-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

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
Windows 7 - ODBC Error When Customizing USER DSN Rob Windows 64bit 0 10-09-2009 09:46 PM
Customizing windows authentication Ram... ASP .Net Security 0 01-30-2007 10:09 AM
Want overview for customizing some of the forms authentication logic brianjadams@gmail.com ASP .Net 0 08-02-2006 05:45 PM
customizing e-mail printing in thunderbird marco Firefox 0 12-03-2004 07:52 PM
Customizing LDAP attribute in Netscape 7.1 Edoardo Tirtarahardja Firefox 0 08-04-2003 02:07 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57