Summary | IMP-imap authentication broken |
Queue | IMP |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 3. High |
Owners | chuck (at) horde (dot) org |
Requester | adrieder (at) sbox (dot) tugraz (dot) at |
Created | 07/19/2007 (6642 days ago) |
Due | 07/19/2007 (6642 days ago) |
Updated | 07/23/2007 (6638 days ago) |
Assigned | 07/19/2007 (6642 days ago) |
Resolved | 07/23/2007 (6638 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
http://lists.horde.org/archives/cvs/Week-of-Mon-20070716/069474.html
it seems to be working now...
http://lists.horde.org/archives/cvs/Week-of-Mon-20070716/069474.html
imp/config/conf.php:
$conf['server']['server_list'] = 'shown';
have for hooks, realms, etc.?
horde/config/conf.php
$conf['auth']['params']['app'] = 'imp';
$conf['auth']['driver'] = 'application';
horde/config/prefs.php
$_prefs['fullname'] = array(
'value' => '',
'locked' => false,
'shared' => true,
'type' => 'text',
'hook' => true,
'desc' => _("Your full name:")
);
$_prefs['from_addr'] = array(
'value' => '',
'locked' => false,
'shared' => true,
'type' => 'text',
'hook' => true,
'desc' => _("Your From: address:")
);
The hooks looks for the fullname and from-address in an LDAP-directory
using Auth::getBareAuth() if setm otherwise they return ''.
imp/config/servers.php:
There is a long list of imap and pop servers, each having a different
realm, e.g.
$servers['sbox'] = array(
'name' => 'sbox / student / Studierende',
'server' => 'xxx.xxx.xxx.xxx',
'hordeauth' => false,
'protocol' => 'imap/notls',
'port' => 143,
'maildomain' => 'sbox.tugraz.at',
'smtphost' => 'mailrelay.tugraz.at',
'smtpport' => 25,
'realm' => 'sbox',
'preferred' => '',
'admin' => array(
'params' => array(
'login' => 'imap',
'password' => 'secret',
'userhierarchy' => 'user.',
'protocol' => 'imap/notls',
'hostspec' => 'xxx.xxx.xxx.xxx',
'port' => 143
)
),
'quota' => array(
'driver' => 'imap',
'params' => array(),
),
'acl' => array(
'driver' => 'rfc2086',
),
);
The pref_uid is then saved as user@realm, eg. testuser@sbox
I hope this helps...
State ⇒ Feedback
have for hooks, realms, etc.?
in imp/lib/Auth/imp.php on line 130 the IMP_IMAP::singleton call
passes $userID which is set to $_SESSION['imp']['uniquser'], so it
still doesn't work.
State ⇒ Resolved
Assigned to Chuck Hagenbuch
Priority ⇒ 3. High
State ⇒ Unconfirmed
New Attachment: IMAP.php.patch
Queue ⇒ IMP
Due ⇒ 07/19/2007
Summary ⇒ IMP-imap authentication broken
Type ⇒ Bug
realm from a server list:
http://cvs.horde.org/diff.php/imp/lib/IMAP.php?r1=1.44&r2=1.45&ty=u
the attached patch solves the problem.