6.0.0-git
2024-07-16

[#1733] imp/lib/api.php incorrect function _imp_userList()
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

History
2005-04-08 21:05:08 Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
This has been fixed in IMP 4.0.3-RC1 already.
2005-04-08 20:49:05 jeffrey (at) crawford (dot) homeunix (dot) net Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ imp/lib/api.php incorrect function _imp_userList()
Queue ⇒ IMP
Reply to this comment
The Function _imp_userList() did not have the "Secret::read" function 
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

Saved Queries