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

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 6185
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.com> wrote in message
news:uL**************@tk2msftngp13.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**************@TK2MSFTNGP12.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.com> wrote in message
news:uL**************@tk2msftngp13.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.com> wrote in message
news:OW**************@TK2MSFTNGP12.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**************@TK2MSFTNGP12.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.com> wrote in message
news:uL**************@tk2msftngp13.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
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...
1
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...
5
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...
1
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...
0
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...
1
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...
0
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...
2
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...
7
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...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.