| 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 | 2005-04-08 (7039 days ago) |
| Due | |
| Updated | 2005-04-08 (7039 days ago) |
| Assigned | |
| Resolved | 2005-04-08 (7039 days ago) |
| Milestone | |
| Patch | No |
State ⇒ Resolved
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
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