powered by Jive Software

Need to change the domain for SSL

Hi all,

When I initially installed openfire I left the domain as default, however we are now looking to implement SSL and I think this would be easier if we were using our domain name.

Is there a good way to switch everything over to our .com domain instead of the local server name?

Thanks,

Kyle

I’m not sure, but you will probably have to re-run the setup and then put the needed domain name there. Changing it via system properties may not do the trick. To re-run the setup, stop Openfire, open /openfire/conf/openfire.xml and change the last setup tg to the opposite.

Will this change the domain for all the users as well?

So, i did that on my testing server. It had xmpp.domain - wroot. All my users had name@wroot JIDs. I have stopped the server, edited the /openfire/conf/openfire.xml (make sure you do this with admin rights if doing this on Windows 7+, run Notepad with Run as admin and then open this file, edit and save). You need to change setup tag at the bottom to false. Then run Openfire and go to Admin Console. It will show the setup again. On the second page, i have put wroot2 into domain field. On the admin password page repeat your admin password 3 times. Once the setup is completed, stop the server again. Edit openfire.xml again and put admin@newdomain (admin@wroot2 in my case) into tag (uncomment this tag). Run the server, go to Admin Console, login with admin. Go to System properties, make sure that xmpp.domain is now newdomain. Login with users, make sure their JIDs are now name@newdomain. If you use shared groups, just go to Users, click on some user, the Roster menu and see how users are listed for shared groups. Mine are all user@wroot2.

That will change the domain and users on the server. Your server’s (machine) name or hostname will stay the same. So if your user login using its hostname as a servername in Spark or other client, they should be able to login. Though maybe it is better to change the hostname as well and change the servername on login window in the client for every user to use the new hostname.

I did that and it did change the domain, but I have lost all my plugins and configurations… I did make a flat backup of Openfire before doing this however.

EDIT: It took them a minute to pop up but everything is as it should be! Thanks!

Message was edited by: Kyle

I haven’t checked everything after the change, just the users. Though i did notice that my Kraken registrations were gone. But when i changed back to the original domain name, they were back. So they were in a user@oldformat stored in my database. Some other plugins may rely on domain name (monitoring, clustering?), but probably most should work.