<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: SSO on Apache: not logged in to Ivy but in tomcat?</title><link>https://answers.axonivy.com/questions/1319/sso-on-apache-not-logged-in-to-ivy-but-in-tomcat</link><description>&lt;p&gt;Hello Ivy-Comunity!&lt;/p&gt;
&lt;p&gt;When logged in to Apache (and to Tomcat) the User is not taken by Ivy.&lt;/p&gt;
&lt;p&gt;In a testing environment I have the following constellation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Linux environment with Ivy 5.1.3 attached to AD&lt;/li&gt;
&lt;li&gt;Apache Server with Kerberos Login attached to the same AD&lt;/li&gt;
&lt;li&gt;Ajp-Connector to Ivy-Tomcat&lt;/li&gt;
&lt;li&gt;A jsp testing Page in the Ivy-Environment (applicationHome on the Application-wf-Page)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So this Page shows me by asking request.getRemoteUser() that this User is logged in: Hans.Tester@TESTENV.LOCAL and a HTTP Session request.getSession().getId(). But getting the Ivy-User by ivySession.getSessionUser() returns null. Except when Logged in manualy the result Hans.Tester for the Ivy-Session.&lt;/p&gt;
&lt;p&gt;So why is that? Or how can I make shure, that the Session is taken correctly by ivy?&lt;/p&gt;
&lt;p&gt;First guess is, that the username comes with the Environment (TESTENV.LOCAL). If it is the Issue, how to shut that down?&lt;/p&gt;
&lt;p&gt;With further investigation I found out more:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In a Windows-Environment under IIS the UserName of the Tomcat-Session is in this format: TESTENV\Alexis.Suter&lt;/li&gt;
&lt;li&gt;The Ivy-Session is not saved into Tomcat-request. (When only logging in to Ivy)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1319/sso-on-apache-not-logged-in-to-ivy-but-in-tomcat" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 20 May 2015 16:19:35 -0400</lastBuildDate><item><title>Answer by Alexis</title><link>https://answers.axonivy.com/questions/1319/sso-on-apache-not-logged-in-to-ivy-but-in-tomcat/1324</link><description>&lt;p&gt;After a lot of research I found this solution.&lt;/p&gt;
&lt;p&gt;In httpd.conf I added this code to the Location-Tag (&amp;lt; Location /ivy5 &amp;gt;) it will simply chopp off the @REALM from the User sent to Ivy. It is so far the simplest and possibly the only way to modify the User before it is given to Tomcat.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    RewriteEngine On
    RewriteCond %{LA-U:REMOTE_USER} ^(.+)@.*$
    RewriteRule ^ - [E=JK_REMOTE_USER:%1]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Most informations I got from: httpd.apache.org/docs/2.2/mod/mod_rewrite.html&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexis</dc:creator><pubDate>Wed, 20 May 2015 16:19:35 -0400</pubDate><guid>https://answers.axonivy.com/questions/1319/sso-on-apache-not-logged-in-to-ivy-but-in-tomcat/1324</guid></item><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/1319/sso-on-apache-not-logged-in-to-ivy-but-in-tomcat/1320</link><description>&lt;p&gt;Hi Alexis&lt;/p&gt;
&lt;p&gt;The problem is that Axon.ivy is not prepared that the user name is in the format &lt;code&gt;user@domain&lt;/code&gt;. It can handle SSO if the user name is in format &lt;code&gt;user&lt;/code&gt; or like in IIS &lt;code&gt;domain\user&lt;/code&gt;. &lt;/p&gt;
&lt;p&gt;Try to change Apache configuration to provide the user name in a support format. &lt;/p&gt;
&lt;p&gt;If this is not possible and it is important for your project sent a feature request to our support so that we can also support the format provided by Apache.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Mon, 18 May 2015 11:06:13 -0400</pubDate><guid>https://answers.axonivy.com/questions/1319/sso-on-apache-not-logged-in-to-ivy-but-in-tomcat/1320</guid></item></channel></rss>