Skip to main content
Participant
Oct 17, 2018 4:06 PM UTC
Question

Auth_User is blank

I am new to coldfusion and need some "guiding" on this matter.  I have a workstation with windows 10 and I have installed Coldfusion2016 as a .war file (cfusion.war, a JEE install option) in the webapps folder in apache tomcat 9.x directory. 

In the following Coldfusion code, the Auth_User is blank and when I run my application I get error.

<cfset ThisUser_Id = TRIM(UCASE(RemoveChars(auth_user,1,find('\',auth_user))))>

What do I need to do to get value for "auth_user"?

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

BKBK
Community Expert
Community Expert
Oct 20, 2018 2:35 PM UTC

I agree with @Bardnet. If you no longer wish to use Windows Authentication, then you should replace the authentication code in your application.

Translate
Inspiring
Oct 18, 2018 7:59 AM UTC

Do you have an IIS server on top of Tomcat? I trust, Auth_user is only filled with a value if "Windows Authentication" is enabled on the IIS site

Translate
Participant
Oct 25, 2018 6:23 PM UTC

IIS is not involved in this and Tomcat is the only server involved. Having said that, it looks like I need to connect Tomcat to the Active Directory for user authentication.

Translate
Carl Von Stetten
Legend
Oct 17, 2018 4:24 PM UTC

Where is "Auth_User" coming from or how is it being set?  Is it from a CGI variable?

Keep in mind that some of the CGI variables that are typically populated by ColdFusion if installed using the installer may not be available with a WAR deployment on stock Tomcat.  The Tomcat included in a ColdFusion install has been customized by Adobe to provide additional functionality, including setting many CGI variables.

https://coldfusion.adobe.com/category/coldfusion-blog/

Translate
Participant
Oct 25, 2018 6:26 PM UTC

Hi Carl;

What do you mean by "Additional Functionality"? Does connecting Tomcat to Active Directory for user authentication is fit into that?

regards.

Translate