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

how to get windows username

Contributor ,
Sep 16, 2012 Sep 16, 2012

Hi All,

I need to have the windows username to check whether he is an internal user or an external user to our application.

We are using LDAP authentication for our application; is there anyway to get the windows username in coldfusion?

I checked some blogs and site to use #cgi.auth_user#, but its not working;

I use Coldfusion 9.0 and Apache 2.2.

Any inputs are appreciated.

2.0K
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 ,
Sep 17, 2012 Sep 17, 2012

In what way is cgi.auth_user not working?

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
Enthusiast ,
Sep 17, 2012 Sep 17, 2012
LATEST

Unless you are using WIndows Authentication in IIS for the website, I don't think that you will see information in that cgi variable.  There is no way, without using a browser plug-in, to find the info about the client.  it is outside of the javascript sandbox.  Even if you use WIndows authentication, I'm pretty sure that it is not guananteed to be in the cgi var - firewalls can and do filter out that data.

-reed

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