Erlang/OTP Forums

Author Message

<  Ejabberd mailing list  ~  mass removal

Guest
Posted: Sun Jul 25, 2010 1:58 pm Reply with quote
Guest
what is the simplest way to remove a whole buch of (bogus) users?

randy
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post received from mailinglist
Guest
Posted: Wed Jul 28, 2010 12:08 pm Reply with quote
Guest
2010/7/25 Randy Bush <randy@psg.com>:
> what is the simplest way to remove a whole buch of (bogus) users?

The most simple, but inefficient for many unregistrations:
ejabberdctl unregister spammer1 example.org
ejabberdctl unregister spammer2 example.org

If you install mod_admin_extra, the most simple and quite efficient:
ejabberdctl delete_old_users_vhost example.org 365

Otherwise, the most efficient:
$ ejabberdctl debug

(ejabberd@localhost)1> Users = ["spammer1", "spammer2"].
["spammer1","spammer2"]

(ejabberd@localhost)2> [ejabberd_auth:remove_user(U, "example.org") ||
U <- Users].
[ok,ok]


---
Badlop
ProcessOne
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post received from mailinglist
Guest
Posted: Wed Jul 28, 2010 5:21 pm Reply with quote
Guest
whoops!

# ejabberdctl live
--------------------------------------------------------------------

IMPORTANT: ejabberd is going to start in LIVE (interactive) mode.
All log messages will be shown in the command shell.
You can interact with the ejabberd node if you know how to use it.
Please be extremely cautious with your actions,
and exit immediately if you are not completely sure.

To exit this LIVE mode and stop ejabberd, press:
q(). and press the Enter key

--------------------------------------------------------------------
To bypass permanently this warning, add to ejabberdctl.cfg the line:
EJABBERD_BYPASS_WARNINGS=true
Press any key to continue


{error_logger,{{2010,7,28},{17,20,35}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}
{error_logger,{{2010,7,28},{17,20,35}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.20.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.9.0>]},{messages,[]},{links,[#Port<0.101>,<0.17.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,463}],[]]}
{error_logger,{{2010,7,28},{17,20,35}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[['ejabberd@localhost',shortnames]]}},{restart_type,permanent},{shutdown,2000},{child_type,worker}]}]}
{error_logger,{{2010,7,28},{17,20,35}},supervisor_report,[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,shutdown},{offender,[{pid,undefined},{name,net_sup},{mfa,{erl_distribution,start_link,[]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
{error_logger,{{2010,7,28},{17,20,35}},std_info,[{application,kernel},{exited,{shutdown,{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}}"}

Crash dump was written to: /var/log/ejabberd/erl_crash_20100728-172024.dump
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{shutdown,{kernel,start,[normal,[]]}}})
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post received from mailinglist
Guest
Posted: Thu Jul 29, 2010 3:10 pm Reply with quote
Guest
On Wed, 28 Jul 2010 19:21:08 +0200
Randy Bush <randy@psg.com> wrote:

> whoops!
>
> # ejabberdctl live
[...]
> {error_logger,{{2010,7,28},{17,20,35}},"Protocol: ~p: register
error:
> ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},
> [{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},
> {net_kernel,start_protos,3},{net_kernel,init_node,2},
> {net_kernel,init,1},{gen_server,init_it,6},
[...]
This starts another instance of ejabberd server which is no different
from a server working in detached mode (a normal way of operation) and
hence it tries to open the same port to listen, and fails.

So, either stop the server and then start it using "live" or use
`ejabberdctl debug` to attach to a running instance of the server.
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post received from mailinglist
Guest
Posted: Thu Jul 29, 2010 4:27 pm Reply with quote
Guest
>> # ejabberdctl live
> [...]
>> {error_logger,{{2010,7,28},{17,20,35}},"Protocol: ~p: register error:
>> ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},
>> [{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},
>> {net_kernel,start_protos,3},{net_kernel,init_node,2},
>> {net_kernel,init,1},{gen_server,init_it,6},
> [...]
> This starts another instance of ejabberd server which is no different
> from a server working in detached mode (a normal way of operation) and
> hence it tries to open the same port to listen, and fails.
>
> So, either stop the server and then start it using "live" or use
> `ejabberdctl debug` to attach to a running instance of the server.

duh. thank you.

randy
_______________________________________________
ejabberd mailing list
ejabberd@jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Post received from mailinglist
wuji
Posted: Fri Aug 17, 2012 8:30 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
30 years in prison if convicted on that charge. The The [h2]imitation designer *beep*[/h2] The maximum sentence for aggravated battery is 15 years.After three
of testimony from Brewer, his parents and several other boys boys cheap polo ralph lauren boys who'd witnessed the attack, a six-person jury in the
County Courthouse began deliberations Monday afternoon, but adjourned after three three cheap jordans three hours without a verdict. Tuesday's deliberations were delayed when
said they could not understand what was being said in in cheap replica *beep* in an audio recording of a conversation between Bent and
alleged accomplices taped by police following their arrest.At noon on on imitation designer *beep* on Tuesday, the jury sent a note to Broward County
Michael Robinson asking for a transcript of the recording, but but cheap polo shirts but Robinson replied that no transcript was available.Prosecutors argued that
was trying to avoid responsibility for the violence by offering offering jordan 6 olympic offering others money to hurt Brewer, who was 15 at
time. But defense attorneys claimed that Bent never intended the the cheap Ralph Lauren the attack, calling the case an example of "prosecution overkill."Robinson
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum