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? 3 6188
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?
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?
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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
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: 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...
|
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,...
|
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...
| |