Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CGI.AUTH_USER

Posted on 2004-08-30
5
Medium Priority
?
1,638 Views
Last Modified: 2013-12-24
Hi All

Variable  #cgi.auth_user# did not give the values when I run the application on XP. In NT, it give correct login name and application works perfect !!

1. I am having application.cfm file in my folder, in that I assigned the variable  as follow :
<CFSET #UserId# = cgi.auth_user>.

2. In my application, I have email function that deliver the status email to concerned people on daily basis.  This application first get the name of the user  from the above variable and search the email-id which already stored in database based on the variable.  It is working perfect in NT. But in XP I could not see the value of the variable and finally, the email function did not work.

We use IE 6.0.2800

If you provide the appropriate comments  will be highly appreciated.

Thanks in advance.
0
Comment
Question by:cmurugavel
  • 2
5 Comments
 
LVL 21

Accepted Solution

by:
pinaldave earned 100 total points
ID: 11939003
How about this? I devide your answer in three parts.:))
Problem:
CGI variables like auth_user & remote_user are only available when users are authenticated.

Explaination.
On Win NT it will work as it authorises the user.
On XP it does not (as per your setting so it does not work).

Solution: Go to IIS Internet Manager and changed the authentication method for my Virtual directories to only allow "integrated windows authentication" . This will fix your problem.
Regards,
---Pinal
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 11939007
Make sure that you turn off Anonymous Users in the directory security
section of the site and allow Basic Authentication, now when you try and
browse the site for the first time you will be presented with a login
dialog.
Regards,
---Pinal
0
 

Assisted Solution

by:jonbigelow
jonbigelow earned 100 total points
ID: 11946609
What Pinal said was right, but there's another possible step:

In IE go to Tools > Internet Options > Security
Click on the custom level button for the zone that your site is in (I assume this is an intranet)
Scroll down to User Authentication and check "Automatic login only in Intranet zone"

That way your browser will pass the username and password automatically when challenged by the server.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question