Evik James
Evik James

Reputation: 10503

How can I display the username of a user currently logged in to our web site?

I am using ColdFusion 9.1.2.

Our intranet users are currently logging in to a workstation via Active Directory. I want our ColdFusion intranet page to display their Active Directory username.

Are there Active Directory variables available to ColdFusion? How do I access them?

Upvotes: 3

Views: 1949

Answers (1)

Bradley Moore
Bradley Moore

Reputation: 748

http://www.webmasterkb.com/Uwe/Forum.aspx/cold-fusion/15060/Pass-current-login-name-to-coldfusion

Mattastic - 24 Jul 2007 09:53 GMT

If you have integrated authentication enabled in IIS, CGI.AUTH_USER will be set to the DOMAIN\username of the current user.

I haven't done it before, but this seems to be the answer.

Upvotes: 2

Related Questions