[horde] Administrator: List Users

Marco Pirovano marco.pirovano at unibocconi.it
Wed Jul 26 03:18:01 PDT 2006


Hello,

sorry for the long post, but I hope it explain well the problem.

I've a strange problem listing users with administrator.

This is the error:

A fatal error has occurred
Authentication at IMAP server failed.

[line 236 of /d0/webmail.unibocconi.it/htdocs/horde-3.1.2/admin/user.php]
Details (also in Horde's logfile):

object(pear_error)(8) {
  ["error_message_prefix"]=>
  string(0) ""
  ["mode"]=>
  int(1)
  ["level"]=>
  int(1024)
  ["code"]=>
  string(11) "horde.error"
  ["message"]=>
  string(37) "Authentication at IMAP server failed."
  ["userinfo"]=>
  NULL
  ["backtrace"]=>


That seems it can't authenticate to the imap server.

In the Apache log there is this error_log:

[Wed Jul 26 12:13:01 2006] [error] [client 10.1.12.40] PHP Notice:  Unknown():
Can't connect to localhost.sm.unibocconi.it,143: Connection refused (errflg=2)
in Unknown on line 0, referer:
http://panoramix-vh.sm.unibocconi.it/webmail.unibocconi.it/htdocs/horde-3.1.2/services/portal/sidebar.php?Horde=c7f245ac7551b87385bef747e63c9afb


So, I have changed in lib/Horde/IMAP/Admin.php the line:

    $default_params = array(
            'hostspec' => 'localhost',

to

    $default_params = array(
            'hostspec' => 'imap.unibocconi.it',

and I can list users.

So, my imp/config/servers.php seems to be wrong ?
This is:


$servers['cyrus'] = array(
    'name' => 'Bocconi IMAP Server',
    'server' => 'imap.unibocconi.it',
    'hordeauth' => false,
    'protocol' => 'imap/notls',
    'port' => 143,
    'maildomain' => 'unibocconi.it',
    'smtphost' => 'smtp.unibocconi.it',
    'smtpport' => 25,
    'realm' => '',
    'preferred' => '',
    'admin' => array(
        'params' => array(
            'login' => 'cyrus',
            'password' => 'password',
            'userhierarchy' => 'user.'
        )
    ),
    'quota' => array(
        'driver' => 'cyrus',
        'params' => array(),
    ),
    'acl' => array(
        'driver' => 'rfc2086',
    ),
);


but if I change the 'login' with a different user I can't list users,
so my server.php is read.

The last point: I take all the horde framework from an other host,
I make a tar.gz of all horde framework from this host, where all works FINE !!!

In the host where all works is running FreeBSD 6.0, with PHP 4.4.1,
on the second, where I have the problem is running FreeBSD 6.1 with PHP 4.4.2.

Thank you very much for your help.

Ciao,
Marco

* Marco Pirovano
* Universita' Bocconi, Area Sistemi Informatici e Telematici
* Piazza Sraffa 11 - 20136 Milano
* Tel. +39 02 5836.3173  Fax. +39 02 5836.3160  VoIP. 02 5828.3173


More information about the horde mailing list