<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Add proxy support to Horde Framework Auth/Auth.php</title> 
  <pubDate>Thu, 09 Apr 2026 23:32:30 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/3288</link> 
  <atom:link rel="self" type="application/rss+xml" title="Add proxy support to Horde Framework Auth/Auth.php" href="https://bugs.horde.org/ticket/3288/rss" /> 
  <description>Add proxy support to Horde Framework Auth/Auth.php</description> 
 
   
   
  <item> 
   <title>I use a proxy in front of my web mail, so the last_login alw</title> 
   <description>I use a proxy in front of my web mail, so the last_login always shows as the proxy instead of the user&#039;s actual IP.  The following fixes it.  May not be the best patch, but it works for me...



RCS file: /repository/framework/Auth/Auth.php,v

retrieving revision 1.142.10.19

diff -u -r1.142.10.19 Auth.php

--- Auth.php    1 Jan 2006 21:28:07 -0000       1.142.10.19

+++ Auth.php    18 Jan 2006 04:04:23 -0000

@@ -724,6 +724,8 @@

         // Set the user&#039;s last_login information.

         $last_login = array(&#039;time&#039; =&gt; time(),

                             &#039;host&#039; =&gt; @gethostbyaddr($_SERVER[&#039;REMOTE_ADDR&#039;]));

+        if (!empty($_SERVER[&#039;HTTP_X_FORWARDED_FOR&#039;]))

+           $last_login-&gt;host = $_SERVER[&#039;HTTP_X_FORWARDED_FOR&#039;];

         $GLOBALS[&#039;prefs&#039;]-&gt;setValue(&#039;last_login&#039;, serialize($last_login));

  

         if ($changeRequested) {



</description> 
   <pubDate>Wed, 18 Jan 2006 04:05:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3288#t15648</link> 
  </item> 
   
  <item> 
   <title>Fixed.</title> 
   <description>Fixed.</description> 
   <pubDate>Wed, 18 Jan 2006 11:55:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3288#t15661</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
