[imp] Re: [horde] horde/imp problem : can't login

Fred Ho fkho at fredho.net
Tue Jan 11 02:13:34 PST 2005


Sorry, I missed the horde/imp version you are using.

In horde/config/registry.php, you put in the following:

$this->registry['auth']['login'] = 'imp';
$this->registry['auth']['logout'] = 'imp';

/* mail: Handler for sending mail. */
$this->registry['mail']['compose'] = 'imp';
$this->registry['mail']['composePopup'] = 'imp';

$this->applications['horde'] = array(
     'fileroot' => dirname(__FILE__) . '/..',
     'webroot' => '/horde',
     'initial_page' => 'login.php',
     'icon' => '/horde/graphics/home.gif',
     'name' => _($_SERVER['SERVER_NAME']),
     'allow_guests' => false,
     'status' => 'active',
     'templates' => dirname(__FILE__) . '/../templates',
     'cookie_domain' => $_SERVER['SERVER_NAME'],
     // ** If IE will be used to access Horde modules, you should read
     //    this discussion about the cookie_path setting (discussing issues
     //    with IE's Content Advisor):
     //    http://lists.horde.org/archives/imp/Week-of-Mon-20030113/029149.html
     // 'cookie_path' => '/horde',
     'cookie_path' => '/',
     'server_name' => $_SERVER['SERVER_NAME'],
     'server_port' => $_SERVER['SERVER_PORT']
);

$this->applications['imp'] = array(
     'fileroot' => dirname(__FILE__) . '/../imp',
     'webroot' => $this->applications['horde']['webroot'] . '/imp',
     'icon' => $this->applications['horde']['webroot'] . 
'/imp/graphics/imp.gif',
     'name' => _("Mail"),
     'allow_guests' => false,
//    'status' => 'inactive'
     'status' => 'active'
);

In horde/config/horde.php, I got:

$conf['auth']['driver'] = 'imap';
$conf['auth']['params']['dsn'] = '{localhost:143/imap/notls}INBOX';

Since all my preferences are stored in mysql, I got:
$conf['prefs']['driver'] = 'sql';
$conf['prefs']['params']['phptype'] = 'mysql';
$conf['prefs']['params']['hostspec'] = 'localhost';
$conf['prefs']['params']['username'] = 'horde';
$conf['prefs']['params']['password'] = 'xxxx';
$conf['prefs']['params']['database'] = 'horde';
$conf['prefs']['params']['table'] = 'horde_prefs';

Note that if you are using Courier, specify in horde/imp/config/servers.php
something like this for the namespace:

$servers['imap'] = array(
     'name' => 'Courier IMAP Server',
     'server' => 'localhost',
     'protocol' => 'imap/notls',
     'port' => 143,
     'folders' => '',
     'namespace' => 'INBOX.',
     'maildomain' => '$HTTP_HOST',
     'smtphost' => 'localhost',
     'realm' => '',
     'preferred' => ''
);

In horde/imp/config/conf.php, disable redirect:
$conf['user']['alternate_login'] = false;
$conf['user']['redirect_on_logout'] = false;

Hope this help.

Regards,
Fred



Quoting youri <ya at youri.be>:

> Hi,
>
> Thanks for your answer, but as i'm using horde 2.2.4, i don't have a
> file named conf.php, it's horde.php in this version and in the available
> options i have this :
>
> /**
>   ** Horde Authentication
>   **/
>
> // If you want to use IMP with Horde and don't want to let the users
> // login twice (once for Horde and once for IMP) you can setup Horde
> // to let IMP do the authentication stuff. Just uncomment the
> // auth/login/logout lines in registry.php instead of configuring the
> // following settings.
>
> // What backend should we use for authenticating users to Horde? Valid
> // options are currently 'imap', 'ldap', 'mcal', 'sql', 'ftp', 'smb',
> // 'krb5' and 'radius'.
> $conf['auth']['driver'] = '';
>
> // An array holding any parameters that the Auth object will need to
> // function correctly.
> $conf['auth']['params'] = array();
>
> do you have any idea?
>
> i can't upgrade to horde 3 right now, because it need an upgraded
> version of php and we have lots of application using php that will need
> a complete rewriting.
>
> youri
>
>
> Fred Ho wrote:
>> If you want IMP to do the authentication, you should have this in
>> horde/config/conf.php:
>>
>> $conf['auth']['driver'] = 'application';
>> $conf['auth']['params']['app'] = 'imp';
>>
>> and in horde/imp/conf/servers.php:
>> $servers['imap'] = array(
>>    ...
>>    'hordeauth' => false,
>>    'protocol' => 'imap/notls',
>>    ...
>> );
>>
>> Regards,
>> Fred
>>
>>
>>
>> Quoting youri <liste at youri.be>:
>>
>>> Hello,
>>>
>>> i'm running a debian box with Horde: 2.2.4, IMP: 3.2.3 and Turba: 1.2.1
>>> Im using courier-imap with maildir support, and a Mysql server.
>>>
>>> At first i tested my configs :
>>> on horde test.php everything looks ok, i don't doon't have ldap and
>>> postgresql support, but i don't need it.
>>> On the imp test.php page i have made the php imap support test and got a
>>> good result.
>>>
>>> For the config,
>>>
>>> in horde.conf i have
>>> $conf['auth']['driver'] = ''
>>> so that imp do the authentication stuff.
>>>
>>> and for the prefs:
>>> $conf['prefs']['driver'] = 'sql';
>>> $conf['prefs']['params'] = array();
>>> $conf['prefs']['params']['phptype'] = 'mysql';
>>> $conf['prefs']['params']['hostspec'] = 'localhost';
>>> $conf['prefs']['params']['username'] = 'lions_horde';
>>> $conf['prefs']['params']['password'] = '8zEaLQNh';
>>> $conf['prefs']['params']['database'] = 'horde';
>>> $conf['prefs']['params']['table'] = 'horde_prefs';
>>>
>>> in IMP i have just changed the server.php to put my imap server like this :
>>> $servers['imap'] = array(
>>>      'name' => 'Lions Mail Server',
>>>      'server' => 'localhost',
>>>      'protocol' => 'imap/notls',
>>>      'port' => 143,
>>>      'folders' => '',
>>>      'namespace' => '',
>>>      'maildomain' => 'lions.lu',
>>>      'smtphost' => 'localhost',
>>>      'realm' => 'lions.lu',
>>>      'preferred' => ''
>>> );
>>>
>>> the courier-imap server is configured to make it's authentication
>>> through MySQL, and it is working fine, i can get the message with a mail
>>> client and on localhost with telnet.
>>>
>>> Now the problem :
>>> When i try to login in IMP, the browser works, waiting for webmail to
>>> respond.
>>> here is the only entry in the horde.log (in debug mode)
>>> Jan 10 19:31:25 HORDE [info] [imp] clean session [on line 882 of
>>> "/var/www/argon7/lions/webmail/horde-2.2.4/lib/Horde.php"]
>>>
>>> I can't see a connection on the database, the mysql.log don't log
>>> anything when trying to connect with IMP.
>>>
>>>
>>> Can anybody give a idea?
>>>
>>> thanks,
>>>
>>> youri
>>> -- Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>
>>
>>
>




More information about the imp mailing list