Skip to main content
Inspiring
May 18, 2009
Question

cgi.remote_user is blank

  • May 18, 2009
  • 1 reply
  • 2841 views

I have been using cgi.remote_user to retrieve the logon ID of users, then pasing that value thru screens, all works fine.

However, we have defined a new datasource and when I tried to use cgi.remote_user, it is blank ? The dba is on vactaion so I cannot check with him. But I was wondering if anybody knows why cgi.remote_user is not returning anything this time. On other applications we have, it works fine, and I don't think I am doing anything differently.

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    May 19, 2009

    cgi.remote_user has nothing to do with the database and the new

    datasource so I think the 2 problems are not connected.

    My guess is that you're in the MS environment and you're using a

    browser that doesn't support NTLM authentication (for example Opera).

    Mack

    tclaremont
    Inspiring
    May 19, 2009

    Put the following code in a new CFM page. View the page. What do you get?

    <cfdump var="#CGI#">

    I am curious to see if ANY of the cgi variables are working, or if it is just the auth_user that is not being retrieved.

    trojnfnAuthor
    Inspiring
    May 19, 2009

    Problem has been resolved.

    When the db admin setup the structure for us, he forgot to do something, thus it was not working.  But as soon as I notified him of the problem, he corrected it and now cgi.remote_user is displaying the value.

    I had used <cfoutput>#cgi.remote_user#</cfoutput> to try and see what the value was and it was always blank. Now it is being displayed.

    Thanks for your help.