473,473 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

windows authentication but still getting Login box

Hi

Any ideas on this... having moved the web app to another server, and setup
all the WebApp data (disable anonymous access etc), locally my site still
asks me for a Username/Password, even though I've got
authentication="Windows" in web.config.

On another machine on the network, I don't get the Login box, but I just get
a 401.2 error (you are not authorised to view this page).

I've tried using impersonate, to no avail. What could be wrong?

Help appreciated

Cheers
Dan
Nov 18 '05 #1
3 4272
You'll get the login box when the web server cannot authenticate the
credentials the browser is sending. (In the 401.2 scenario, the
browser could authenticate the credentials and then decided the
credentials were not authorized).

This could happen, for instance, when you are logged into a different
domain then the web server.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 12 Oct 2004 09:57:05 -0700, "Dan Nash" <da*@musoswire.co.uk>
wrote:
Hi

Any ideas on this... having moved the web app to another server, and setup
all the WebApp data (disable anonymous access etc), locally my site still
asks me for a Username/Password, even though I've got
authentication="Windows" in web.config.

On another machine on the network, I don't get the Login box, but I just get
a 401.2 error (you are not authorised to view this page).

I've tried using impersonate, to no avail. What could be wrong?

Help appreciated

Cheers
Dan


Nov 18 '05 #2
Hi

How do I make sure the domain and web server are the same? I assumed they
are, as the domain controller / active directory and iis are running on the
same win 2k machine.

on the server, when i get the login box, if i give my user name and pass
(same as for loggin onto 2k) and the domain, it works. im not even getting
the box on the xp box across the network...

How do I fix this?

"Scott Allen" wrote:
You'll get the login box when the web server cannot authenticate the
credentials the browser is sending. (In the 401.2 scenario, the
browser could authenticate the credentials and then decided the
credentials were not authorized).

This could happen, for instance, when you are logged into a different
domain then the web server.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 12 Oct 2004 09:57:05 -0700, "Dan Nash" <da*@musoswire.co.uk>
wrote:
Hi

Any ideas on this... having moved the web app to another server, and setup
all the WebApp data (disable anonymous access etc), locally my site still
asks me for a Username/Password, even though I've got
authentication="Windows" in web.config.

On another machine on the network, I don't get the Login box, but I just get
a 401.2 error (you are not authorised to view this page).

I've tried using impersonate, to no avail. What could be wrong?

Help appreciated

Cheers
Dan


Nov 18 '05 #3
Hi Dan:

Ah, if the behavior differs between different clients, then you also
might want to check the IE settings. In IE, under Tools -> Internet
Options -> Security, highlight the 'zone' the server will be in and
click on 'custom level'. Scroll down to the bottom and see if IE is
set to "Prompt for username and password".

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Wed, 13 Oct 2004 02:57:04 -0700, "Dan Nash" <da*@musoswire.co.uk>
wrote:
Hi

How do I make sure the domain and web server are the same? I assumed they
are, as the domain controller / active directory and iis are running on the
same win 2k machine.

on the server, when i get the login box, if i give my user name and pass
(same as for loggin onto 2k) and the domain, it works. im not even getting
the box on the xp box across the network...

How do I fix this?

"Scott Allen" wrote:
You'll get the login box when the web server cannot authenticate the
credentials the browser is sending. (In the 401.2 scenario, the
browser could authenticate the credentials and then decided the
credentials were not authorized).

This could happen, for instance, when you are logged into a different
domain then the web server.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Tue, 12 Oct 2004 09:57:05 -0700, "Dan Nash" <da*@musoswire.co.uk>
wrote:
>Hi
>
>Any ideas on this... having moved the web app to another server, and setup
>all the WebApp data (disable anonymous access etc), locally my site still
>asks me for a Username/Password, even though I've got
>authentication="Windows" in web.config.
>
>On another machine on the network, I don't get the Login box, but I just get
>a 401.2 error (you are not authorised to view this page).
>
>I've tried using impersonate, to no avail. What could be wrong?
>
>Help appreciated
>
>Cheers
>
>
>Dan



Nov 18 '05 #4

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

Similar topics

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...
7
by: Wade Wegner | last post by:
Hello, I have been desperately trying to programmatically authenticate a windows user, create their credentials, and then redirect them to a different server while passing the credentials at the...
3
by: Reza | last post by:
Hello I tried this friday, but didn't get anywhere so trying again Basically, I have a fixed list of people that can access the application in the Intranet, and with the policy of the company the...
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....
4
by: Lewis Edward Moten III | last post by:
I have a file that users can download through a web page protected by forms authentication: Download.aspx?ID=45 and within that file ... FileInfo fileToDownload = new FileInfo(fileName);
7
by: Justin | last post by:
I am trying to password protect a subdirectory using forms authentication. I am using the "Location" tag to specify the directory to be protected. The login.aspx page is in the root directory of...
2
by: raagz | last post by:
Hi, I am developing an intranet portal and i have used Windows Authentication. The application is hosted on a windows 2003 server with .NET Framework 1.1. I have set the session timeout to 20...
3
by: serge calderara | last post by:
Dear all, I clearly underdand the advantage of both type of authentification but is it allowed or possible to set the Authentication mode to Windows and then handle a login form for defined...
3
by: Evan Camilleri | last post by:
I have a problem for a Windows Service to login on an SQL server (different machine) - neither Windows Authentication nor SQL Authentication worked. LOGIN FAILED FOR USER sa (for example). If...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
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
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.