[Tickets #2067] HTTP/HTTPS login issue

bugs@bugs.horde.org bugs at bugs.horde.org
Thu Jun 2 02:04:21 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2067
-----------------------------------------------------------------------
 Ticket             | 2067
 Updated By         | horde at padilla.net
 Summary            | HTTP/HTTPS login issue
 Queue              | IMP
 Version            | 4.0.3
 State              | Feedback
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


horde at padilla.net (2005-06-02 02:04) wrote:

here is the unified diff:

--- ~/horde-3.0.4/lib/Horde/Auth.php Tue Mar 29 12:59:56 2005
+++ lib/Horde/Auth.php  Thu Jun  2 08:00:17 2005
@@ -1080,7 +1080,10 @@
     function _checkSessionIP()
     {
         return (empty($GLOBALS['conf']['auth']['checkip']) ||
-                (isset($_SESSION['__auth']['remote_addr']) &&
$_SESSION['__auth']['remote_addr'] == $_SERVER['REMOTE_ADDR']));
+                (isset($_SESSION['__auth']['remote_addr']) &&
$_SESSION['__auth']['remote_addr'] == $_SERVER['REMOTE_ADDR']) ||
+                (isset($_SESSION['__auth']['remote_addr']) &&
$_SESSION['__auth']['remote_addr'] == $_SERVER['HTTP_CLIENT_IP']) ||
+                (isset($_SESSION['__auth']['remote_addr']) &&
$_SESSION['__auth']['remote_addr'] == $_SERVER['HTTP_X_FORWARDED_FOR']) 
+       );
     }
 
     /**





More information about the bugs mailing list