Summary | imp/lib/api.php incorrect function _imp_userList() |
Queue | IMP |
Queue Version | 4.0.2 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | |
Requester | jeffrey (at) crawford (dot) homeunix (dot) net |
Created | 04/08/2005 (7498 days ago) |
Due | |
Updated | 04/08/2005 (7498 days ago) |
Assigned | |
Resolved | 04/08/2005 (7498 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ imp/lib/api.php incorrect function _imp_userList()
Queue ⇒ IMP
translating the "admin_password" parameter: The function should look
like:
function _imp_userList()
{
$params = $_SESSION['imp']['admin']['params'];
$params['admin_user'] = $params['login'];
$params['admin_password'] = Secret::read(Secret::getKey('imp'),
$params['password']);
require_once 'Horde/IMAP/Admin.php';
$imap = &new IMAP_Admin($params);
return $imap->listMailboxes();
}
This is how the function looked before I fixed it:
function _imp_userList()
{
$params = $_SESSION['imp']['admin']['params'];
$params['admin_user'] = $params['login'];
$params['admin_password'] = $params['password'];
require_once 'Horde/IMAP/Admin.php';
$imap = &new IMAP_Admin($params);
return $imap->listMailboxes();
}
This prevented the Users and Group admin functions from working
because the cyrus imapd account was being passed the wrong password