[Kolab-devel] [issue4799] Admin: activesync.php should not assume localhost

Chris Hastie issues at kolab.org
Wed Nov 2 16:56:02 CET 2011


When managing activesync using the web interface, activesync.php assumes that
the imap server will be available at localhost. This is not necessarily true,
and assumes that bind_addr has not been set specifically in kolab.conf.

A better option would be use the value of bind_addr. However, the value of
fqdnhostname is already available to activesync.php and if the DNS is sensible
should work.

--- activesync.php.dist-2.3.4   2011-11-02 15:46:51.000000000 +0000
+++ activesync.php      2011-11-02 15:48:01.000000000 +0000
@@ -84,7 +84,7 @@
 {
        //not sure about that
        list($prefix, $domain) = split("@",$_SESSION['auth_user']);
-       $this->connectstring= $_server = "{localhost:143/imap/notls/norsh}";
+       $this->connectstring= $_server = "{" . $_SESSION['fqdnhostname'].
":143/imap/notls/norsh}";
        $tmbox = imap_open($_server , $_SESSION['auth_user'],
$_SESSION['auth_pw'], OP_HALFOPEN);
          if ($tmbox) {
                     $this->inbox=$tmbox;

----------
messages: 28319
nosy: tipichris
priority: bug
status: unread
title: Admin: activesync.php should not assume localhost

______________________________________
Kolab issue tracker <issues at kolab.org>
<https://issues.kolab.org/issue4799>
______________________________________




More information about the devel mailing list