Openfire admin password

Hi,

I am not well versed with the embedded database, but I believe in the embeded-db folder, there is a openfire.script file, which contains the SQL commands for your database. If you open it up with a text editor and search for a line containing admin and ofUser, you may find your password in plain text there.

daryl

I too am unable to access the web admin console. What happened to this feature compared to the older versions?

I don’t have the admin info listed in my openfire.xml file. any other ideas? Yes I am running the latest version. Just downloaded a couple days ago and set this up.

Thanks

Salt

With 3.6.0a, is it possible to add another authorized user to the openfire.xml file and have that new authorized user get sucked in to the database with a restart of openfire? (if it is, you could do that, get in and then start adjust admin user/passwords as needed).

As stated before, edit the conf/openfire.xml file with the red text…

*** jimuser *** 9090 9091

This will REPLACE the existing admin account.

Once you get into the Admin console, you can edit the Server Properties and change the admin account, or add another with a comma separator.

I have done this several times with 3.6.0a…

Hi,

This worked for me. Like many others I seem to have an Openfire server that keeps forgetting passwords.

version 6.3.6, about 3 days old. Not too impressed.

Hmmm,

I tried that on my 3.6.0a server and then went to the admin gui and typed jimuser with no password and it didn’t let me in. (I copied and pasted your text and then stopped and started openfire). We use ldap integration with AD normally so is it possible this didn’t work because it still tried to use ldap/ad for authentication? I’m basically looking for a way to get into the admin gui when the ldap/ad piece is hosed up so I can reconfigure to get it working.

Thanks

Been there, done that many times. If you brick your ldap configured server, you can’t just add an admin account to the openfire.xml to get access. If your ldap stuff is horqued, then it will not find the user you added to the xml file.

The only recourse is to change the true to false and restart your server. Reconnect and run through mr wizzard again.

jim

Helo Everyone,

I just installed Openfire for the first time. We have a Red Hat server, so I went with the openfire-3.6.4-1.i386.rpm. It installed fine with no errors. It started fine. I went to the browser interface and configured it fine. I chose to use the embedded database and default group system. However, when I went to log in it told me that my username or password were incorrect. I have tried the solutions offered on this thread and none of them have worked.

Interestingly, when I tried to run the embedded viewer I got this error:

root@server sh embedded-db-viewer.sh
Starting embedded database viewer…
Exception in thread “main” java.lang.NoClassDefFoundError: org.hsqldb.util.DatabaseManagerSwing
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: org.hsqldb.util.DatabaseManagerSwing not found in gnu.gcj.runtime.SystemClassLoader{urls=[], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)

I made sure that I have gcc-java installed (4.1.2-48). Is there something else I need? Is my whole setup broken?

http://community.igniterealtime.org/message/205901 may help.

root@server sh embedded-db-viewer.sh
interesting, I would not start a java application as root

The error “Caused by: java.lang.ClassNotFoundException: org.hsqldb.util.DatabaseManagerSwing not found” indeicates that a “.class” or .“jar” file is missing to start the db viewer application, so it’s sad that you can’t start it but it does not hurt. Your database is so small right now, you can even view and edit it with “vi” (while Openfire is not running) if you want.

LG

where is the database file?

Openfire-Home/embedded-db/openfire.script (all changes/updates are in openfire.log if it does exists).

Not sure where the RPM file does install itself, /usr/local/jive/openfire may be possible.

LG

I openfire.xml appears in the administrator name … I add it?

That is what I get in my openfire.xml

<?xml version="1.0" encoding="UTF-8" ?>
  • <!--
This file stores bootstrap properties needed by Openfire.
    Property names must be in the format: "prop.name.is.blah=value"
    That will be stored as:
        <prop>
            <name>
                <is>
                    <blah>value</blah>
                </is>
            </name>
        </prop>     Most properties are stored in the Openfire database. A
    property viewer and editor is included in the admin console.

–>

  • <!--
root element, all properties must be under this element

–>

  • <!--
Disable either port by setting the value to -1

–>

9090

9091

es

  • <!--
Network settings. By default, Openfire will bind to all network interfaces.
      Alternatively, you can specify a specific network interfaces that the server
      will listen on. For example, 127.0.0.1. This setting is generally only useful
       on multi-homed servers.

–>

  • <!--
<network>
        <interface></interface>
    </network>

–>

org.jivesoftware.database.EmbeddedConnectionProvider

true

Strange… I could not log in to Admin Console even after your suggestions.

I’m using WAMP on localhost so I did this:

  1. Opened “openfire” database in PHPMyAdmin

  2. Opened “ofuser” table

  3. Found (at install time generated user) “admin”

  4. Edited cell in column (at install time created) “plainPassword

4a) New password was entered

  1. Login was successfull [username: admin / password: see 4a)]

Please do file a bug-report on this one.

N.B.

Since I’m running on localhost I do not have any certificates installed that should break the functionallity - or?

Hi Sasa,

did you test this with 3.7.0 beta?

LG

Hi!

Nopp - will firstly check out the non-beta sw.

/S

[Edit]

Yepp - now it works as it should.

But… (beta: ) Fastpath does not work correctly, it does not show up in main menu.

Reverting back to 3.6.4

That may be right or wrong - currently you need to compile the fastpath plugin to use it. The 3.6.4 plugins do likely not work as expected and the http://www.igniterealtime.org/projects/openfire/plugins-beta.jsp pages does not yet contain the plugins.

I found out that if you do not have openfire tied to AD, then the default login is “admin” and the password you entered during setup. By default is has nothing to do with the email address you entered at setup - like you’d think it would. This is still on Openfire 3.7

Is there somebody that can compile the Fastpath Service plugin for 3.7? In Subversion I see that it is in the 3.7 beta tag but not in trunk.

If you can access the database, please open the table named ofproperty, then find out the record

“admin.authorizedJIDs” and its propvalue is “admin@gauss-pc”.

That means only admin can login the admin panel.

So you can add another jid(make sure you know its password ) in it, For example “admin@gauss-pc,test1@gauss-pc”.

Restart openfire service,

Login in admin panel via the account which you just added.