[ejabberd] Importing roaster from piefxis

Badlop badlop at gmail.com
Wed Dec 1 02:58:52 MSK 2010

2010/11/30 David Mohr <damailings at mcbf.net>:
> # ejabberdctl import_piefxis ~/david.xml
> =INFO REPORT==== 30-Nov-2010::22:58:49 ===
> D(<4605.501.0>:ejabberd_commands:314) : Executing command
> ejabberd_piefxis:import_file with Args=["/root/david.xml"]
> ** at node ejabberd at seeker **
> Problem 'error badarg' occurred executing the command.
> Stacktrace: [{erlang,binary_to_list,[none]},
>             {ejabberd_piefxis,add_user,2},
>             {ejabberd_piefxis,process_element,2},
>             {lists,foldl,3},
>             {ejabberd_piefxis,read_chunks,2},
>             {ejabberd_piefxis,import_file,2},
>             {ejabberd_ctl,call_command,3},
>             {ejabberd_ctl,try_call_command,3}]
> So this looks to me like it's trying to create the user when all I want
> is to import the roster.

Right. I imagine in your XML, the User element doesn't contain the
Password attribute.

> How else can I import a roaster while using
> ldap for authentication?

I've implemented support for your case.
You can apply this patch to your ejabberd source code:
Then try again to import your file.


More information about the ejabberd mailing list