Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

is it possible to display windows domain details in coldfusion?

Guest
Aug 10, 2010 Aug 10, 2010

I would like to be able to know if coldfusion is able to obtain a few details automatically about a user on a windows network.

  • The windows domain username that they are currently logged in as
  • Their computer name

Is is possible for Coldfusion to automatically retrieve these as variables?

441
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 10, 2010 Aug 10, 2010

Is is possible for Coldfusion to automatically retrieve these as variables?

No.  Because CF runs on the CF server and talks solely to the web server.  It doesn't know anything about the client at the other end.

However the web server might be able to pass this info on to CF, provided the client browser sends it to the web server in the first place.

I've not looked at this for an age, but IE used to automatically send the client machine's current Windows authorisation credentials if the web server was set to not allow anonymous access.  However only IE did this.  And I dunno about the machine name.

You need to approach your investigation here from the browser / web server perspective, rather than a CF perspective: you need to find out how to get the browser to send that info to the web server, and then how to get the web server to expose this to CF.

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 10, 2010 Aug 10, 2010

ping -a ip address from command.com will return the machine name.  All you have to do is figure out how to put that into a batch file and retrieve the info.  Then you can call the batch file with cfexecute.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 10, 2010 Aug 10, 2010
LATEST

Put the following on a CF page on your server:

#CGI.AUTH_USER#

View the page in your browser.

What do you get?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources