473,837 Members | 1,535 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 6222
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
1796
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
8019
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
4406
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
4815
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
1368
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
1562
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
3967
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
3352
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
5373
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
9683
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,...
1
10631
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9409
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7813
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7006
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
5851
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4477
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 we have to send another system
2
4049
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3126
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.