473,503 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Authentication doesnt work when using non - microsoft browsers :-(

Hi eveyone,

If anyone could advise on the following I would be truly greatful:

I have a fairly standard set up. An IIS 5.1 website set up with anonymous
access allowed in all areas of the site but a secure subdirectory called
/secure/

I am using windows forms authentication and this is configured in my web.config
file.

All of this works perfectly when using IE. If i attempt to jump straight
into the secure directory without logging in - it boots me back to the login
page. If I log in, it lets me through no problems.

The problem is that this doesnt work in firefox or netscape.

When I put in my username and password they either popup a box asking for
another username and password (which i don't know) or it takes me directly
to the standard 401.2 page which tells me the following:
HTTP 401.2 - Unauthorized: Logon failed due to server configuration
Background:

This is usually caused by a server-side script not sending the proper WWW-Authenticate
header field. Using Active Server Pages scripting this is done by using the
AddHeader method of the Response object to request that the client use a
certain authentication method to access the resource.

Can anyone advise me why IE is working and the other browsers arent. I have
read some information that suggests that it could be because the secure directory
is set up to use Windows Integrated Security but I'm sure that hasnt mattered
before with other sites and I don't know how else to set the sites up. I
don't want usernames etc sent in plain text etc

Thanks to anyone who can share any information

Thanks all

TCE
Nov 19 '05 #1
2 1765
If the server is configured to require a particular authentication protocol
and the browser refuses to support it, then you get a 401.2. That behavior
is by-design.

Either fix the browser to support the authentication protocol of the server,
or change the authentication protocol required by the server.

I do not know what you mean by "windows forms authentication " -- can you
give me the Authentication configuration of /secure inside of IIS Manager UI
(web.config is not involved).

I am pretty certain that Firefox supports Integrated Windows Authentication.
So, either your configuration is not what you said, or you've got something
else misconfigured.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"thechaosengine" <none> wrote in message
news:21*********************@news.microsoft.com...
Hi eveyone,

If anyone could advise on the following I would be truly greatful:

I have a fairly standard set up. An IIS 5.1 website set up with anonymous
access allowed in all areas of the site but a secure subdirectory called
/secure/

I am using windows forms authentication and this is configured in my
web.config
file.

All of this works perfectly when using IE. If i attempt to jump straight
into the secure directory without logging in - it boots me back to the login
page. If I log in, it lets me through no problems.

The problem is that this doesnt work in firefox or netscape.

When I put in my username and password they either popup a box asking for
another username and password (which i don't know) or it takes me directly
to the standard 401.2 page which tells me the following:
HTTP 401.2 - Unauthorized: Logon failed due to server configuration
Background:

This is usually caused by a server-side script not sending the proper
WWW-Authenticate
header field. Using Active Server Pages scripting this is done by using the
AddHeader method of the Response object to request that the client use a
certain authentication method to access the resource.

Can anyone advise me why IE is working and the other browsers arent. I have
read some information that suggests that it could be because the secure
directory
is set up to use Windows Integrated Security but I'm sure that hasnt
mattered
before with other sites and I don't know how else to set the sites up. I
don't want usernames etc sent in plain text etc

Thanks to anyone who can share any information

Thanks all

TCE

Nov 19 '05 #2
Hi,

In addition to David's question, can you clarify whether you are talking
about ASP.NET "Forms Authentication", or you are talking about Windows
Authentication (again configurable in web.config, but might also require
some configuration in IIS).

Cheers
Ken

--
Blog: www.adopenstatic.com/cs/blogs/ken/
Web: www.adopenstatic.com
"David Wang [Msft]" <so*****@online.microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
: If the server is configured to require a particular authentication
protocol
: and the browser refuses to support it, then you get a 401.2. That behavior
: is by-design.
:
: Either fix the browser to support the authentication protocol of the
server,
: or change the authentication protocol required by the server.
:
: I do not know what you mean by "windows forms authentication " -- can you
: give me the Authentication configuration of /secure inside of IIS Manager
UI
: (web.config is not involved).
:
: I am pretty certain that Firefox supports Integrated Windows
Authentication.
: So, either your configuration is not what you said, or you've got
something
: else misconfigured.
:
: --
: //David
: IIS
: http://blogs.msdn.com/David.Wang
: This posting is provided "AS IS" with no warranties, and confers no
rights.
: //
: "thechaosengine" <none> wrote in message
: news:21*********************@news.microsoft.com...
: Hi eveyone,
:
: If anyone could advise on the following I would be truly greatful:
:
: I have a fairly standard set up. An IIS 5.1 website set up with anonymous
: access allowed in all areas of the site but a secure subdirectory called
: /secure/
:
: I am using windows forms authentication and this is configured in my
: web.config
: file.
:
: All of this works perfectly when using IE. If i attempt to jump straight
: into the secure directory without logging in - it boots me back to the
login
: page. If I log in, it lets me through no problems.
:
: The problem is that this doesnt work in firefox or netscape.
:
: When I put in my username and password they either popup a box asking for
: another username and password (which i don't know) or it takes me directly
: to the standard 401.2 page which tells me the following:
:
: > HTTP 401.2 - Unauthorized: Logon failed due to server configuration
: > Background:
: This is usually caused by a server-side script not sending the proper
: WWW-Authenticate
: header field. Using Active Server Pages scripting this is done by using
the
: AddHeader method of the Response object to request that the client use a
: certain authentication method to access the resource.
:
: Can anyone advise me why IE is working and the other browsers arent. I
have
: read some information that suggests that it could be because the secure
: directory
: is set up to use Windows Integrated Security but I'm sure that hasnt
: mattered
: before with other sites and I don't know how else to set the sites up. I
: don't want usernames etc sent in plain text etc
:
: Thanks to anyone who can share any information
:
: Thanks all
:
: TCE
:
:
:
Nov 19 '05 #3

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

Similar topics

8
3677
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...
11
3533
by: ElmoWatson | last post by:
I tried on the Security newgroup, as well as other places, and haven't gotten an answer yet - - I'm pulling my hair out over this one. I'm trying to get Forms Authentication working.....I can get...
1
2160
by: Srinivasa Raghavan | last post by:
Hi All, I have some doubts on the Treeview control and Form Authentication 1) will Form Authentication work if cookies are disabled. 2) I have problem in the following code (TreeView...
9
2493
by: Tom B | last post by:
In my web.config file I've specified Windows for the authentication, in IIS I've set it to Integrated Authentication. But my SQL connection is still showing Anonymous. Is there somewhere else I...
4
2050
by: Barry | last post by:
The MS fix for IE broke how users access our site (if they patch their browsers), so I need a solution to get users logged onto our site transparently. Basically we used to log on to the site...
4
1858
by: js | last post by:
I am building a intranet site that has public and private information that are rendered by ASP.Net pages. The site is not partitioned into private/public folders. When users hit the site's URL,...
7
1728
by: mircu | last post by:
Hi, I noticed weird behaviour with the site that is using forms authentication. I am logged to the site from the same machine from two browsers (opened separately, not ctrl-N) as different users...
3
2515
by: sefe dery | last post by:
hi ng, i try to create a asp.net 1.0 website on windows server 2003(Servername: ServerX) with iis 6.0. PROBLEM: The user should login with his windows credentials in basic.aspx and...
3
6856
by: Patrick Fogarty | last post by:
I am programming what is to be a web service client that will use an HTTP-POST to request and retrieve data. The remote server (written in java for what it's worth) requires basic authentication...
0
7086
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
7332
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...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
382
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.