Skip to main content
Inspiring
November 14, 2006
Question

Windows Environment Variables

  • November 14, 2006
  • 1 reply
  • 1314 views
Is Coldfusion able to grab the Windows Environment variables of the user that is viewing a CF page? I am wondering about reading the windows username currently logged in on the client machine. I don't think this is the same as CGI variables.
    This topic has been closed for replies.

    1 reply

    Inspiring
    November 14, 2006
    Is Coldfusion able to grab the Windows Environment variables of the user
    that is viewing a CF page? I am wondering about reading the windows
    username currently logged in on the client machine. I don't think this
    is the same as CGI variables.


    Actually it is, as in the CGI scope is where IIS will populate the
    username in CGI.auth_user if if the following criteria are met.

    1) Integrated windows authentication is turned on for the
    website/directory/file in the IIS manager security settings.

    2) Anonymous is turned OFF in the same security settings.
    RedcarlAuthor
    Inspiring
    November 17, 2006
    We are running a Novell network. The IIS machine has the Novell client installed. If the user has not personally logged into the IIS machine, it will not authenticate them through the CF page. It worked great if the user already had a profile on Windows. Is there a way around this besides having users log into the machine, which really isn't an option?

    Suppose I am Average Joe User viewing the site. My own computer is running the Novell client and I have logged into this, so therefore windows has a profile for me, and my username is stored in the Username Environment variable (which is viewable by typing 'set' in the command prompt). Can CF grab that username Environment variable off my computer and use it at all? Or is it all based on the username on the IIS server?
    Inspiring
    November 19, 2006
    I'm not sure if this will help you, but if you're on a Novell network and your user has logged onto a client machine via netware, you can actually grab the netware details and use those. You can create an ActiveX object on the fly with javascript and then, for eg, set a cookie with the logon ID. Then you can get at that with CF to do your user authentication.