6.0.0-beta1
10/18/25

[#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 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

History
04/08/2005 09:05:08 PM Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
This has been fixed in IMP 4.0.3-RC1 already.
04/08/2005 08:49:05 PM jeffrey (at) crawford (dot) homeunix (dot) net Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
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