Koozali.org: home of the SME Server

Horde :: access from behind "megaproxy"

Offline purpaboo

  • ***
  • 48
  • +0/-0
    • http://www.kush-t.co.uk
Horde :: access from behind "megaproxy"
« on: July 03, 2007, 02:45:25 PM »
Hi

I have an issue with Horde, in that when I try to access my webmail from work, it frequently borks with the error "Your Internet Address has changed since the beginning of your Mail session. To protect your security, you must login again."

My work appears to use a badly set up proxy which uses two external IPs.

I have RTFM and STFW and found that I should change the

/etc/e-smith/templates/home/httpd/html/horde/config/conf.php file. There should be two lines:

Code: [Select]
$conf['auth']['checkip'] = true;

Both lines must be changed to

$conf['auth']['checkip'] = false;

in order to prevent IP address check upon login and the problem described above.


But, this config file file on an e-smith box (7.3) seems to just point to some templates


" Sorted by name (.bak,~,.o,.h,.info,.swp,.obj at end of list)
"= /etc/e-smith/templates/home/httpd/html/horde/config/conf.php/
../
00header
100GeneralSettings
110SQL
120AdminAuthentication
125Authentication
130Signup
140Logging
160PreferenceSystem
200CacheSystem
220Mailer
230VirtualFileStorage
235MimeDetection
240ProblemReporting
300MenuSettings
320Hooks
330PortalBlock
340Kolab
999footer
999mimp
template-begin

Can anyone point me in the direction of where the "checkip" option can be switched off?

TIA

Pete[/code]

Offline ldkeen

  • *
  • 405
  • +0/-0
Horde :: access from behind "megaproxy"
« Reply #1 on: July 03, 2007, 03:01:03 PM »
Pete,
You can edit the template fragment using the following:
#mcedit /etc/e-smith/templates/home/httpd/html/horde/config/conf.php/125Authentication
After modifying the template do the following:
#/sbin/e-smith/expand-template /home/httpd/html/horde/config/conf.php
#/sbin/e-smith/signal-event email-update
Lloyd

Offline purpaboo

  • ***
  • 48
  • +0/-0
    • http://www.kush-t.co.uk
thanks
« Reply #2 on: July 03, 2007, 03:07:17 PM »
thanks for the super fast response, ldkeen!

If it doesn't work I'll post again.

Pete

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Horde :: access from behind "megaproxy"
« Reply #3 on: July 03, 2007, 10:17:07 PM »
If you edit the default SME template fragement then your edits will disappear when the relevant SME rpm is upgraded.

The "SME" way to customize this template fragment would be:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/home/httpd/html/horde/config/conf.php
cd /etc/e-smith/templates-custom/home/httpd/html/horde/config/conf.php
cp etc/e-smith/templates/home/httpd/html/horde/config/conf.php/125Authentication .
mcedit 125Authentication
(note the lone "." at the end of of the 3rd line)

Customize to your heart's content, then
Code: [Select]
/sbin/e-smith/expand-template /home/httpd/html/horde/config/conf.php
/sbin/e-smith/signal-event email-update


If 'expand-template' finds a file in the .../templates-custom/... area, it will ignore any file with the same name and relative location in the .../templates/... area.