Just married: Change a User Name & Update the Rosters

In a large environment, you may face requests to change user names for some reason. We often had requests to change the username because somebody married and changed the family name.

Our usernames are a combination of the forename and the surname like forename.surname@jabberserver.

So we need to edit the usernames, but sadly Openfire does not support that because the username is unique and the primary key for nearly all user relations in the database.

The created plugin creates a new user and copies all the roster entries, groups, password, preferences, vcard et cetera from an other user and deletes the old user (if you want). You also also create just a copy from an existing user for testing purpose or something like that.

This is the first version of the plugin, so use it on your own risk. You might keep the old user in database as long as your sure everything works as intended!

If you find some bugs feel free to comment, create tickets (if your allowed to) or fix it on your own. Sourcecode is available in openfire svn trunk.

Greetz,

Stytrix

Dieses Dokument wurde aus folgender Diskussion erzeugt: Just married, Openfire plugin