Skip to main content
nikos101
Inspiring
June 24, 2009
Question

Is it possible to get the active directory user name of the person

  • June 24, 2009
  • 1 reply
  • 710 views

Is it possible to get the active directory user name of the person who is logged onto a windows computer, when they are using your coldfusion site, the same way asp pages can do that?

    This topic has been closed for replies.

    1 reply

    Inspiring
    June 24, 2009

    Look at your cgi variables.

    nikos101
    nikos101Author
    Inspiring
    June 24, 2009

    Thanks but I could't find anything in the debug trace in the relevant variables.

    ilssac
    Inspiring
    June 24, 2009

    SECOND TRY TO POST THIS REPLY

    You have to turn on "Windows Integrated Security" and turn off anonymous login in the IIS web server, once that condition is met the cgi.AUTH_USER variable will be popluated with the domain/username of the user logged into the cient computer.

    If the user is using a windows browser on a windows client computer this will be done silently in the background.  Otherwise they will normally be presented with a login dialog box by the browser.