Cannot login, LDAP no longer working

Newbie to Openfire. We are running v4.2.3 on Server 2008 R2, with the SQL database on a different Server.

A Domain Controller was demoted, and OpenFire stopped working. We cannot login to the Administration Console, or connect with Spark clients. We re-promoted the Domain Controller, but that did not resolve the issue.

We are getting these errors:
“Login failed: make sure your username and password are correct and that you’re an admin.”
“CSRF Failure!”

We have tried restoring the C:\Program Files (x86)\Openfire folder from backup, and then restarting the Openfire service, but that did not resolve the issue.

Any ideas?

are you using the embedded database or an external one (like ms sql)? If you are using an external one, than its pretty easy to go into the database and change the system property to point to a different domain controller.

If not, than you can run through the install again. stop openfire. locate the openfire.xml file, and edit it with a text editor. change the setup tag from true to false. Start openfire. openfire will go through the setup process again allow you to update information.