473,594 Members | 2,870 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

LOGON_USER / NT Security

I'm trying to get the NT login id of a user on a web page without making the
user type it into a login box. I'm using the LOGON_USER server variable.
The problem is, if the web page allows anonymous access, LOGON_USER returns
nothing. If the page is set to Basic Security, the NT login popup box comes
up, even though the user is already logged into the network, and HAS access
to this page. Moreover, if I try this on my PC instead of our webserver, it
works like I would expect. That is, when set to Basic Security, it does NOT
pop up a login box if the user is allowed to view the page, and LOGON_USER
returns the userid. Is there some setting on the server I need to change?
Or something else?
Jul 19 '05 #1
3 6198
Use integrated authentication and make sure your users access the site using
a domain with no .'s in it, i.e. http://intranet as opposed to
http://iisserver.yourdomain.com. IE will pass the user's logon credentials
to the server silently in the intranet zone (no .'s in domain), by default.

Ray at work

"Maria" <te**@test.co m> wrote in message
news:uL******** ******@tk2msftn gp13.phx.gbl...
I'm trying to get the NT login id of a user on a web page without making the user type it into a login box. I'm using the LOGON_USER server variable.
The problem is, if the web page allows anonymous access, LOGON_USER returns nothing. If the page is set to Basic Security, the NT login popup box comes up, even though the user is already logged into the network, and HAS access to this page. Moreover, if I try this on my PC instead of our webserver, it works like I would expect. That is, when set to Basic Security, it does NOT pop up a login box if the user is allowed to view the page, and LOGON_USER
returns the userid. Is there some setting on the server I need to change?
Or something else?

Jul 19 '05 #2
I'm not sure what you mean by integrated authentication. When I tried using
the machine name of the webserver, it still didn't work. The URL looked
like this: http://servername/folder/file.asp.

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:Op******** ******@TK2MSFTN GP12.phx.gbl...
Use integrated authentication and make sure your users access the site using a domain with no .'s in it, i.e. http://intranet as opposed to
http://iisserver.yourdomain.com. IE will pass the user's logon credentials to the server silently in the intranet zone (no .'s in domain), by default.
Ray at work

"Maria" <te**@test.co m> wrote in message
news:uL******** ******@tk2msftn gp13.phx.gbl...
I'm trying to get the NT login id of a user on a web page without making

the
user type it into a login box. I'm using the LOGON_USER server variable. The problem is, if the web page allows anonymous access, LOGON_USER

returns
nothing. If the page is set to Basic Security, the NT login popup box

comes
up, even though the user is already logged into the network, and HAS

access
to this page. Moreover, if I try this on my PC instead of our webserver,

it
works like I would expect. That is, when set to Basic Security, it does

NOT
pop up a login box if the user is allowed to view the page, and LOGON_USER returns the userid. Is there some setting on the server I need to change? Or something else?


Jul 19 '05 #3
I'm writing for Windows 2000/IIS 5:

IIS manager
Right click on the site or the directory
Click properties
Go to the Directory Security tab
Click the top Edit button (Anon access/authentication control)
Set Anonymous access to False
Set Integrated Windows authentication to True

Ray at work
"Maria" <te**@test.co m> wrote in message
news:OW******** ******@TK2MSFTN GP12.phx.gbl...
I'm not sure what you mean by integrated authentication. When I tried using the machine name of the webserver, it still didn't work. The URL looked
like this: http://servername/folder/file.asp.

"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:Op******** ******@TK2MSFTN GP12.phx.gbl...
Use integrated authentication and make sure your users access the site

using
a domain with no .'s in it, i.e. http://intranet as opposed to
http://iisserver.yourdomain.com. IE will pass the user's logon

credentials
to the server silently in the intranet zone (no .'s in domain), by

default.

Ray at work

"Maria" <te**@test.co m> wrote in message
news:uL******** ******@tk2msftn gp13.phx.gbl...
I'm trying to get the NT login id of a user on a web page without
making
the
user type it into a login box. I'm using the LOGON_USER server variable. The problem is, if the web page allows anonymous access, LOGON_USER

returns
nothing. If the page is set to Basic Security, the NT login popup box

comes
up, even though the user is already logged into the network, and HAS

access
to this page. Moreover, if I try this on my PC instead of our
webserver, it
works like I would expect. That is, when set to Basic Security, it
does NOT
pop up a login box if the user is allowed to view the page, and

LOGON_USER returns the userid. Is there some setting on the server I need to change? Or something else?



Jul 19 '05 #4

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

Similar topics

3
1785
by: JZ | last post by:
I am using Webware installed on Windows2000 server and I found I could not find all server variable like PHP could. E.g. Windows2000 server has specific variable LOGON_USER which is set for every logged person. PHP can easy get to this using $_SERVER. I want to do the same with Webware but I do not know how... Only small sets of variables are available for request()._environ variable which I got with the following code (for Webware): ...
1
7995
by: David Chase | last post by:
I am trying to retrieve the LOGON_USER and it comes up blank. Below is my code: struser = Request.ServerVariables("LOGON_USER") Can anyone help? I need to validate internal people on out intranet. Thanks. David
5
4375
by: T. | last post by:
Hello, I'm trying to pull the logon user's name using Request.ServerVariables("LOGON_USER")...which is returning nothing...so I need help in determining why it's returning nothing, or I need the format in which it returns the username so that I can hard code it. Does it return anything with the username? Thanks...
1
4802
by: dmjames | last post by:
For one of our machines, Request.ServerVariables("LOGON_USER") is returning the wrong value. Person A is logged into the machine (I watched him log in), but when he retrieves an aspx page Request.ServerVariables("LOGON_USER") returns the login of a different user -- a tech who logged in to his machine a week or two ago. It seems to be this one machine that's the problem. The user's login on other machines returns the correct value, and...
0
1358
by: Lyners | last post by:
We have an intranet where a majority of users are in our active directory, but not all. We have recently upgraded to using asp.net on our servers and during the rollout ran into a problem. The users in the non-active directory list could not access the website because of integrated security. Well after figuring out how to solve our problems, we have one problem left (which is actually one of our solutions). On the default.asp page we have...
1
1550
by: Ryan | last post by:
I am trying to figure out why I am trying to use the result of Request.ServerVariables("LOGON_USER") in a query in my aspx application. I want to use the server variable. When I check the length of the string that this method returns (len(Request.ServerVariables("LOGON_USER")) I get a number that is one greater than the the number of characters that are displaying, which of course causes a problem. Does anyone know why this is and...
0
3915
by: Mark Rae | last post by:
Hi, I apologise that this isn't *specifically* an ASP.NET issue - I will also post it to the IIS newsgroup - but I thought I'd ask here anyway on the off-chance that someone may have come across this before... It's an intranet system written in ASP.NET v1.1 using C#. The site is running on IIS6 on Win2k3S with all the SPs and patches etc. The Session_Start interrogates the AUTH_USER server variable to identify the
2
3339
by: lmlaster | last post by:
I have 2 webs under my default web running win2003 1. A front-page intranet 2. A asp (not .net) web is fine Both allow anonomous access. My front page web always gets a BLANK Request.ServerVariables("Logon_User"). The asp web gets the logon_user OK. Both webs have a global.asa that has Sub Session_Onstart() session("logon") = Request.ServerVariables("Logon_User")
7
5343
by: bhavin30 | last post by:
Is there a way to obtain user information (using LOGON_USER server variables) when you have set up the security to Anonymous Access? I have tried setting the security to both Anonymous + Window Integrated, without any luck. I'm using IIS 6.0 on Windows Server 2003 Thanks in advance!
0
7946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
7877
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8253
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8240
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5411
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3867
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3903
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1482
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1216
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.