In setup, some of the host settings are loaded from XML properties specified in openfire.xml, while others are incorrectly loaded from whats currently in JiveGlobals. Since we are in setup mode, JiveGlobals.getProperty returns null thereby ignoring any property overrides in openfire.xml specified by the user.
Instead of just blindly setting anonymous auth to true, check if user has an override property in XML configuration, if not, default to true.
Call getXMLProperty to load user configuration override values and not what is currently in JiveGlobals. During setup mode, this is always null.
Instead of setting default values for auth, user, group, card, lockout, securityAudit and admin class names, check if the user has provided overrides for those properties, and if so, use those, otherwise use defaults.
Expose a method to retrieve XML property names, and then in finishSetup, go through the rest of the XML properties overridden by user that were not touched by setup and individually set those. This is particularly useful when users have to specify primary and secondary * hybrid providers.
After fixing my git mess, new pull request @ https://github.com/igniterealtime/Openfire/pull/65
Looking forward to the feedback.