Ejabberd > Openfire DB migration script

Hi im new to openfire but what i have seen is great so i migrated my ejabberd server to openfire and i want to share with all you a php script i made to migrate rosters database.

I must say the script was made for importing roster tables only because my users data are in Active Directory. I think can be easily moded to import more data.

The script read rosterusers and rostergroups tables from mysql ejabberd database then check if the user is in AD (to avoid importing old stuff) and then dump the XML data needed for import-export plugin.

If u have ejabberd database embeded u can change it to mysql easily with ejabberdctl tool.

Hope it’ll be usefull

sry my english

Thanks

D3x.
ejabberd-openfire-migrate.php (2915 Bytes)