Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a openfire server that was installed through RPM on one of my Linux server. Server is very old and going away soon, so I'm moving openfire to a new server. I installed same version of openfire on a newserver, now when I'm trying to access Administrative Console it wont let me log in :( Password is OK since I'm taking same password that was used before.


SELECT ofUser WHERE username='admin';

shows me my user admin w/ encrypted password, I even tried changing it to a plain password and tried login again it didn't help :( so I revert my changes, any other ideas?

share|improve this question
    
Do you have another user account on the system whose credentials you are able to use to successfully connect via an XMPP client? –  EEAA Feb 22 '12 at 21:45
add comment

1 Answer

up vote 2 down vote accepted

On your new OpenFire server where you know the admin password, use MySQL to do your SELECT query and see its hashed password (I believe its the encryptedPassword column, been awhile since I had OpenFire set up). Copy that entire hashed password to your clipboard, then flip over to the old OpenFire server's MySQL DB and do an:

UPDATE ofUser SET encryptedPassword='<paste in password hash here>' WHERE username='admin';

This should then allow you to access the old OpenFire server using the password you use on the new OpenFire server. It will only work if the OpenFire server isn't salting hashes using some specific string on a per installation basis.

Alternatively, I found this: http://www.bowu.org/open-source/how-to-recover-openfire-admin-password.html

Or, I also found this on the Ignite forums: http://community.igniterealtime.org/thread/46458

Both basically just suggest you tell OpenFire it is an initial installation again, and it'll let you set the admin password (and as long as you pick all the other settings the same it should be fine). I'd definitely take that second person's advice and back up the database first, in case the setup wizard goes and wipes out your database or something.

share|improve this answer
    
I did mysqldump from old server to new, so it already has this information there. I even went through setup again and supposedly reset my admin password to same one and to a new password, it took it, but as soon as I try to login it won't accept it!:( –  alexus Feb 23 '12 at 16:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.