[horde] Horde 4.0.6 (final) - How to remove/delete a user or make an account inactive?

Laurent Foucher laurent.foucher at iut-tlse3.fr
Wed Jun 15 07:48:52 UTC 2011


gimili <gimili17 at gmail.com> a écrit :

> With the latest version of horde, how should a user be removed?  Is  
> it ok to just search for the user name in phpmyadmin and delete the  
> records?  There are some scripts and ideas on the wiki but I don't  
> know if they still work.  We don't have a lot of users but I have an  
> old user getting daily agendas which are bouncing.  Is there a way  
> to make an account inactive?
>
> Thank you for any help/advice,
>

There is an xmlrpc procedure removeUserData :

#!/usr/bin/perl -w

use XMLRPC::Lite;
use Data::Dumper;

my $proxy = 'http://username:password@example.com/horde/rpc.php';

my $xlite = XMLRPC::Lite
     -> proxy($proxy)
     -> call('horde.removeUserData', 'my_user');

my $status = $xlite->result;

print Data::Dumper->Dump($status);

I don't know why, but it doesn't work and i have the following logs :

[horde] Horde_Rpc::authorize() exiting [pid 23083 on line 140 of  
"/usr/share/php/Horde/Rpc.php"]
[horde] Load config file (prefs.php; app: horde) [pid 23083 on line  
860 of "/usr/share/php/Horde.php"]

[horde] PHP ERROR: Missing argument 1 for Horde_Prefs::remove(),  
called in /var/www/horde4/lib/Api.php on line 232 and defined [pid  
23083 on line 146 of "/usr/share/php/Horde/Prefs.php"]
HORDE: 1. Horde_Rpc_Xmlrpc->getResponse() /var/www/horde4/rpc.php:127  
2. xmlrpc_server_call_method() /usr/share/php/Horde/Rpc/Xmlrpc.php:49  
3. Horde_Rpc_Xmlrpc->_dispatcher() 4. Horde_Registry->call()  
/usr/share/php/Horde/Rpc/Xmlrpc.php:74 5.  
Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:967  
6. call_user_func_array() /usr/share/php/Horde/Registry.php:1008 7.  
Horde_Api->removeUserData() 8. Horde_Prefs->remove()  
/var/www/horde4/lib/Api.php:232 9. Horde::errorHandler()  
/usr/share/php/Horde/Prefs.php:146
HORDE [horde] 1. Horde_Rpc_Xmlrpc->getResponse()  
/var/www/horde4/rpc.php:127 2. xmlrpc_server_call_method()  
/usr/share/php/Horde/Rpc/Xmlrpc.php:49 3.  
Horde_Rpc_Xmlrpc->_dispatcher() 4. Horde_Registry->call()  
/usr/share/php/Horde/Rpc/Xmlrpc.php:74 5.  
Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:967  
6. call_user_func_array() /usr/share/php/Horde/Registry.php:1008 7.  
Horde_Api->removeUserData() 8. Horde_Prefs->remove()  
/var/www/horde4/lib/Api.php:232 9. Horde::errorHandler()  
/usr/share/php/Horde/Prefs.php:146  [pid 23083 on line 240 of  
"/usr/share/php/Horde.php"]
HORDE [horde] PHP ERROR: Undefined variable: pref [pid 23083 on line  
148 of "/usr/share/php/Horde/Prefs.php"]
HORDE: 1. Horde_Rpc_Xmlrpc->getResponse() /var/www/horde4/rpc.php:127  
2. xmlrpc_server_call_method() /usr/share/php/Horde/Rpc/Xmlrpc.php:49  
3. Horde_Rpc_Xmlrpc->_dispatcher() 4. Horde_Registry->call()  
/usr/share/php/Horde/Rpc/Xmlrpc.php:74 5.  
Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:967  
6. call_user_func_array() /usr/share/php/Horde/Registry.php:1008 7.  
Horde_Api->removeUserData() 8. Horde_Prefs->remove()  
/var/www/horde4/lib/Api.php:232 9. Horde::errorHandler()  
/usr/share/php/Horde/Prefs.php:148
HORDE [horde] 1. Horde_Rpc_Xmlrpc->getResponse()  
/var/www/horde4/rpc.php:127 2. xmlrpc_server_call_method()  
/usr/share/php/Horde/Rpc/Xmlrpc.php:49 3.  
Horde_Rpc_Xmlrpc->_dispatcher() 4. Horde_Registry->call()  
/usr/share/php/Horde/Rpc/Xmlrpc.php:74 5.  
Horde_Registry->callByPackage() /usr/share/php/Horde/Registry.php:967  
6. call_user_func_array() /usr/share/php/Horde/Registry.php:1008 7.  
Horde_Api->removeUserData() 8. Horde_Prefs->remove()  
/var/www/horde4/lib/Api.php:232 9. Horde::errorHandler()  
/usr/share/php/Horde/Prefs.php:148  [pid 23083 on line 240 of  
"/usr/share/php/Horde.php"]

Thanks for your answer.


More information about the horde mailing list