Solved

CGI.AUTH_USER

Posted on 2004-08-30
5
1,599 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 25 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 25 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

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Join & Write a Comment

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now