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

Windows Authentication and Windows Server ASP.NET

I'm building a web app in C# for use on a company intranet. I want to
restrict access to only authenticated users on the domain. There is plenty
of documentation on this subject except for one issue that I've come across.

When running this on IIS installed on my Windows XP deveopment system, any
authenticated user on the domain can access the page and using the Security
object I can identify them.

However, when running the app on a Windows 2000 Server, users are always
asked for their username and password. I cannot figure out how to get the
information automatically handled by the server.

I've gone through all of the recommended settings for IIS and the web.config
file and cannot get rid of this prompt. Is this normal or expected? Any
help would be appreciated.
Jul 21 '05 #1
4 1496
On Fri, 4 Feb 2005 05:55:07 -0800, "Chris" <Ch***@discussions.microsoft.com> wrote:

¤ I'm building a web app in C# for use on a company intranet. I want to
¤ restrict access to only authenticated users on the domain. There is plenty
¤ of documentation on this subject except for one issue that I've come across.
¤
¤ When running this on IIS installed on my Windows XP deveopment system, any
¤ authenticated user on the domain can access the page and using the Security
¤ object I can identify them.
¤
¤ However, when running the app on a Windows 2000 Server, users are always
¤ asked for their username and password. I cannot figure out how to get the
¤ information automatically handled by the server.
¤
¤ I've gone through all of the recommended settings for IIS and the web.config
¤ file and cannot get rid of this prompt. Is this normal or expected? Any
¤ help would be appreciated.

If you have the web application set up for Windows Integrated Authentication only, and you're still
getting a login dialog, it would appear that there is an attempt to access a secured resource to
which the user does not have access.

You could create a very simple web app that just displays "Hello World" in order verify whether the
security issue is specific to the application or a resource the application is using.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Jul 21 '05 #2
Currently, I'm running a simple test page that displays the
"User.Identity.Name" information only. Still puzzled...

"Paul Clement" wrote:
On Fri, 4 Feb 2005 05:55:07 -0800, "Chris" <Ch***@discussions.microsoft.com> wrote:

¤ I'm building a web app in C# for use on a company intranet. I want to
¤ restrict access to only authenticated users on the domain. There is plenty
¤ of documentation on this subject except for one issue that I've come across.
¤
¤ When running this on IIS installed on my Windows XP deveopment system, any
¤ authenticated user on the domain can access the page and using the Security
¤ object I can identify them.
¤
¤ However, when running the app on a Windows 2000 Server, users are always
¤ asked for their username and password. I cannot figure out how to get the
¤ information automatically handled by the server.
¤
¤ I've gone through all of the recommended settings for IIS and the web.config
¤ file and cannot get rid of this prompt. Is this normal or expected? Any
¤ help would be appreciated.

If you have the web application set up for Windows Integrated Authentication only, and you're still
getting a login dialog, it would appear that there is an attempt to access a secured resource to
which the user does not have access.

You could create a very simple web app that just displays "Hello World" in order verify whether the
security issue is specific to the application or a resource the application is using.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)

Jul 21 '05 #3
Using a fully qualified domain name or ip address in a url will always force
a prompt if authentication is required.

NTLM authentication is only done automatically if a "simple" name is used.
(e.g. http://myserver as opposed to http://myserver.mycompany.com or
http://192.168.1.100 )

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:57**********************************@microsof t.com...
I'm building a web app in C# for use on a company intranet. I want to
restrict access to only authenticated users on the domain. There is
plenty
of documentation on this subject except for one issue that I've come
across.

When running this on IIS installed on my Windows XP deveopment system, any
authenticated user on the domain can access the page and using the
Security
object I can identify them.

However, when running the app on a Windows 2000 Server, users are always
asked for their username and password. I cannot figure out how to get the
information automatically handled by the server.

I've gone through all of the recommended settings for IIS and the
web.config
file and cannot get rid of this prompt. Is this normal or expected? Any
help would be appreciated.

Jul 21 '05 #4
In order for this box to be bypassed you must either use a direct computer
name or add the fully qualified domain path to your trusted sites list. NTLM
will only execute transparently when these conditions are met.

Typically developers are confused by this result because in tests you would
refer to your http:\\localhost which is always a trusted site. It is an
annoyance but it is the only solution to transparent security measure using
NTLM.

"Chris" wrote:
I'm building a web app in C# for use on a company intranet. I want to
restrict access to only authenticated users on the domain. There is plenty
of documentation on this subject except for one issue that I've come across.

When running this on IIS installed on my Windows XP deveopment system, any
authenticated user on the domain can access the page and using the Security
object I can identify them.

However, when running the app on a Windows 2000 Server, users are always
asked for their username and password. I cannot figure out how to get the
information automatically handled by the server.

I've gone through all of the recommended settings for IIS and the web.config
file and cannot get rid of this prompt. Is this normal or expected? Any
help would be appreciated.

Jul 21 '05 #5

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...
2
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself...
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...
1
by: Thomas Scheiderich | last post by:
I am having a problem connecting to an Sql Server using Windows Authentication. I am using the following command: server=Raptor;uid=tfs;password=tol1ee;database=ABC;Network Library =dbmssocn ...
5
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the...
6
by: mcollier | last post by:
I am running a Windows Server 2003 machine as my web server. I would like to use Windows authentication for connections to my SQL Server 2000 instance on a Windows 2000 server. I've read where...
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
8
by: Nils Magnus Englund | last post by:
Hello, I am having trouble using Integrated Windows Authentication between our intranet server and our database server, both of which are on our local domain. Windows authentication works for...
7
by: Alice Wong | last post by:
I am setting up my Web ASP.net application to connect to Sql server using windows authentication. I set up IIS to have integrated windows authenication and sql to allow Windows authentication....
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...

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.