473,806 Members | 2,583 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Auth_User blank. Please help

I am trying to use AUTH_USER from request.serverv ariables but the field is
blank. I am using Windoze server 2003 with IIS5. I know there is a fix
because I did it a long time ago with our old NT server running IIS4 but I
cant remember how I got it to work. We are all authenticated users on our
Domain so this is available, I am able to get IP info and such. I seem to
remember some kind of ASP code that did the fix by altering the way the web
server displays info. Does anyone know this fix?
Jul 22 '05 #1
6 7619
AFAIK there is nothing to "fix".

Are you sure that you web site is not currently set to accept anonymous
requests ?

Patrice

--

"<VITA>" <We*******@goob er.net> a écrit dans le message de
news:Oo******** ******@TK2MSFTN GP09.phx.gbl...
I am trying to use AUTH_USER from request.serverv ariables but the field is
blank. I am using Windoze server 2003 with IIS5. I know there is a fix
because I did it a long time ago with our old NT server running IIS4 but I
cant remember how I got it to work. We are all authenticated users on our
Domain so this is available, I am able to get IP info and such. I seem to
remember some kind of ASP code that did the fix by altering the way the web server displays info. Does anyone know this fix?

Jul 22 '05 #2
Turn off anonymous access for the page, directory, or application in IIS.

Ray at work

"<VITA>" <We*******@goob er.net> wrote in message
news:Oo******** ******@TK2MSFTN GP09.phx.gbl...
I am trying to use AUTH_USER from request.serverv ariables but the field is
blank. I am using Windoze server 2003 with IIS5. I know there is a fix
because I did it a long time ago with our old NT server running IIS4 but I
cant remember how I got it to work. We are all authenticated users on our
Domain so this is available, I am able to get IP info and such. I seem to
remember some kind of ASP code that did the fix by altering the way the web server displays info. Does anyone know this fix?

Jul 22 '05 #3
<VITA> wrote:
I am trying to use AUTH_USER from request.serverv ariables but the
field is blank. I am using Windoze server 2003 with IIS5. I know
there is a fix because I did it a long time ago with our old NT
server running IIS4 but I cant remember how I got it to work. We are
all authenticated users on our Domain so this is available, I am able
to get IP info and such. I seem to remember some kind of ASP code
that did the fix by altering the way the web server displays info.
Does anyone know this fix?


Go into site properties and turn off Anonymous Access
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #4
That did it thanx all.

"Patrice" <no****@nowhere .com> wrote in message
news:eJ******** ******@TK2MSFTN GP10.phx.gbl...
AFAIK there is nothing to "fix".

Are you sure that you web site is not currently set to accept anonymous
requests ?

Patrice

--

"<VITA>" <We*******@goob er.net> a écrit dans le message de
news:Oo******** ******@TK2MSFTN GP09.phx.gbl...
I am trying to use AUTH_USER from request.serverv ariables but the field
is
blank. I am using Windoze server 2003 with IIS5. I know there is a fix
because I did it a long time ago with our old NT server running IIS4 but
I
cant remember how I got it to work. We are all authenticated users on our
Domain so this is available, I am able to get IP info and such. I seem to
remember some kind of ASP code that did the fix by altering the way the

web
server displays info. Does anyone know this fix?


Jul 22 '05 #5

I have this problem too, when I try to use (auth_user) for retrieve user
from windows it doesn’t have value I turn off anonymous access but it
doesn’t return value, can you help me,

--
nikou_70
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Dec 2 '05 #6

when I turn off anonymous access in IIS I get this error,This is
usually caused by a server-side script not sending the proper
WWW-Authenticate header field. Using Active Server Pages scripting this
is done by using the AddHeader method of the Response object to request
that the client use a certain authentication method to access the
resource.

--
nikou_70
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Dec 2 '05 #7

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

Similar topics

8
10917
by: MeAndI | last post by:
How to everybody, how it is possible to change the value of the AUTH_USER server variable? Is this possible? If no, how I could change the logged user? Thanks for help
0
3204
by: Ian Staines | last post by:
In asp the following code: Request.Servervarables("AUTH_USER") will return the header variable AUTH_USER In .NET the code Request.Servervariables("AUTH_USER") returns the server variable AUTH_USER, but if you want the header variable you must request it with Request.Headers("AUTH_USER")
4
4279
by: Jim in Arizona | last post by:
I'm new to aspnet with only limited experience with classic asp. Since I'm on a domain and all users are authenticated. In the past using classic asp I used request.servervariables("auth_user") to grab the domain logon name of the user. Is there a better way or more detailed way in aspnet? Like, instead of putting "mydomain\bobjones" into a variable using request.servervariables("auth_user"), can I extract the actual name "Bob Jones" from...
2
2046
by: z f | last post by:
trying to achieve windows authentication on the fly (without the file configured to deny anonymous access in IIS) i returned a 401 status if the Request.ServerVariables("auth_user") = "" this is OK, the 401 status Code returned with additional headers and the browser performed windows authentication and the next time i had auth_user correctly. but after closing the browser and re-opening it and requesting the same page again, i get the...
2
2391
by: nikou_70 | last post by:
I use auth_user for get username from windows, when I upload that page on server and user open the page that contain this code ,it shows a prompt window and wants username and password ,it's common or it must get automatically from windows?
0
3964
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
1
2035
by: prashanthg | last post by:
Hi Friends, I am having an asp application in which i am capturing the Auth_User for authentication. My problem is when i am trying to turn off the anonymous access tab in the properties window.I am unable to even Run th local host in my machine. If I turn on the anonymous access check box i am able to run the local host but could not capture the AUTH_USER.as i am getting a empty string for that Any body Please help me...
2
1619
by: drengot | last post by:
Hello, I have a little problem. I want write the name of the user authenticated with code : <%=Request.ServerVariables%> bat the page write username and roles (example: Miruss:admin) . I want only username. Help me. (sorry for my English!!!)
0
1988
by: =?Utf-8?B?SlA=?= | last post by:
I have an application that uses Forms Authentication in connection with Active Directory for granting access to an application. When a user logs on with AD, it populates the AUTH_USER ServerVariable and I can then use: Request.ServerVeriables to retrieve the value of this variable or any other value in the ServerVariableCollection.
0
10623
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
10371
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10373
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
10111
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
9192
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...
0
5546
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...
1
4330
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
3852
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
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.