[Tickets #10448] Re: Preauth hook and authusername hook are not used
bugs at horde.org
bugs at horde.org
Thu Dec 13 16:46:24 UTC 2012
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/10448
------------------------------------------------------------------------------
Ticket | 10448
Updated By | aba at sundown.cz
Summary | Preauth hook and authusername hook are not used
Queue | Ingo
Version | Git master
Type | Bug
State | Not A Bug
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
aba at sundown.cz (2012-12-13 16:46) wrote:
>> Just for my own knowledge: Is there a "horde" way to access the Imp
>> auth data? Because for me it does make sense to couple the auth of
>> Ingo to Imp as its settings are also under the Imp menu and sieve
>> rules are set on the mail server.
>
> $ob = $GLOBALS['registry']->call('mail/imapOb');
> $username = $ob->getParam('username');
Hi,
I tried to use hooks to authenticate against dovecot managesieve in
ingo 3.0.1 with no success. I'm using exactly same way how to get
username and password from imap login, both values 'username' and
'password' are filled correctly, but I stil receiving:
dovecot: managesieve-login: Disconnected (auth failed, 1 attempts):
user=<neco at nekde.cz>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1,
secured
Thanks
Petr
this is my hooks.php
class Ingo_Hooks
{
public function transport_auth($driver)
{
$ob = $GLOBALS['registry']->call('mail/imapOb');
return array(
'username' => $ob->getParam('username'),
'password' => $ob->getParam('password')
);
}
}
What could be wrong?
Thanks
Petr
More information about the bugs
mailing list