<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">we have successfully setup RT 4.0.4 with ldap_import and mod_auth_kerb. Now we need to get the setup running through our reverse proxy.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What we have on our reverse proxy is this:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ProxyPass /rt/ <a href="http://hostname.local/rt/">
http://hostname.local/rt/</a> max=100<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ProxyPassReverse /rt/ <a href="http://hostname.local/rt/">
http://hostname.local/rt/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> RedirectMatch ^/$ /rt/<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> # Proxy all locations<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <Proxy *><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> AddDefaultCharset off<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Order deny,allow<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Deny from none<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </Proxy><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <Location /rt><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> AuthType Kerberos<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> AuthName "Kerberos Login"<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> KrbAuthRealms KRB5.LOCAL<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Krb5KeyTab /etc/apache2/host.keytab<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> KrbMethodNegotiate on<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> KrbAuthoritative on<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> KrbMethodK5Passwd off<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> KrbSaveCredentials on<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> require valid-user<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> # SSO<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> RewriteEngine On<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> RewriteCond %{LA-U:REMOTE_USER} (.+)$<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> RewriteRule . - [E=RU:%1]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> RequestHeader set REMOTE_USER %{RU}e<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> </Location><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Running tcpdump we can see that REMOTE_USER is set and send to the host hosting RT. It looks like RT is not picking it up. As far as I understood is that my user gets authenticated at the proxy and RT should trust these
credentials and log in the user.<o:p></o:p></span></p>
</div>
</body>
</html>