transfert account

Hi!

I set up a private ejabberd server on our lan only, disabling s2s and all external communication, so we can talk privately.
For convenience, i set IDs as our email adresses, but these one change, so i'd like to move the existing accounts only changing user id with our new email adresses, keeping all remaining datas..

So : is there a simple way to transfert accounts from a virtual server to another one ?

Thanks :)

ejabberd doesn't include any

ejabberd doesn't include any feature like that, and I am not aware of any other method, but you can try this, if you have a small server (not millions of users).

1. Dump the Mnesia database to a text file
2. Edit that text file, modyfying whatever you want: account usernames, roster usernames...
3. Edit the ejabberd configuration file to define your new virtual host.
4. Optionally, you can delete (or move away) the old mnesia spool files
5. Restart ejabberd
6. Load the modifyied text file into mnesia.

If you use some SQL database instead of Mnesia, you can make such change in some other way.

Syndicate content