9 Replies Latest reply on Apr 25, 2017 8:40 AM by wroot

    I have forgotten my Admin Console password.  

    LCS

      I have forgotten my Admin Console password.  I thought there was a way to edit the password in a file and then that would fix it.    I can't seem to find the place to do that in the file.  I am runing Version 4.0.    Any help with this would be greatly appreciated.

       

       

      Thanks,

        • Re: I have forgotten my Admin Console password.  
          wroot

          If you know password for any other user, you can try adding it as an admin and logging in with it, then resetting password for regular admin. 3d message https://community.igniterealtime.org/message/247679#comment-247679

            • Re: I have forgotten my Admin Console password.  
              LCS

              Now I think I have hosed the whole openfire.xml file.    The service will not start at all now.   Any suggestions?

                • Re: I have forgotten my Admin Console password.  
                  wroot

                  Do you have a backup? Restore it from there. Though usually it doesn't store much information. Other than database connection string like

                  <className>org.jivesoftware.database.EmbeddedConnectionProvider</className>

                   

                  Or post the content of your openfire.xml currently (obfuscating real names and passwords).

                    • Re: I have forgotten my Admin Console password.  
                      LCS

                      Currently attempting to restore from backup.  

                      • Re: I have forgotten my Admin Console password.  
                        LCS

                         

                        <?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 -->

                         

                        <jive>

                         

                          <adminConsole>

                         

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

                         

                            <port>xxxx</port> 

                         

                            <securePort>xxxx</securePort>

                         

                          </adminConsole> 

                         

                          <admin/> 

                         

                          <locale>en</locale> 

                         

                          <!-- 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>

                         

                            --> 

                         

                          <!-- SPDY  Protocol is npn.

                         

                            (note: npn does not work with Java 8)

                         

                            add -Xbootclasspath/p:/OPENFIRE_HOME/lib/npn-boot.jar to .vmoptions file    --> 

                         

                          <!--    

                         

                            <spdy>

                         

                            <protocol>npn</protocol>

                         

                            </spdy>

                         

                            --> 

                         

                          <connectionProvider>

                         

                            <className>org.jivesoftware.database.EmbeddedConnectionProvider</className>

                         

                          </connectionProvider> 

                         

                          <setup>true</setup>

                         

                        </jive>

                         

                          • Re: I have forgotten my Admin Console password.  
                            wroot

                            That's weird that your file is missing <admin> tag (and has strange <admin/> tag).

                             

                            I would try replacing that <admin/> with

                             

                            <admin>

                                <!-- <authorizedUsernames></authorizedUsernames> --> 

                                <!-- <authorizedJIDs></authorizedJIDs> -->

                              </admin>

                             

                            select which one to leave and uncomment in the middle, say

                             

                            <admin>

                                <authorizedUsernames>someuser</authorizedUsernames>

                              </admin>

                             

                            Stop Openfire before editing it, save it, start Openfire and then try logging into Admin Console with someuser.

                              • Re: I have forgotten my Admin Console password.  
                                LCS

                                Still no luck.  I must not be editing the file correctly.  

                                • Re: I have forgotten my Admin Console password.  
                                  LCS

                                  Ok, I had a duh moment.   I have successfully set myself as an admin and was able to login to the admin console.   Changed tha password and we are back up and running.   I happened to see this info in another post, and it looks to be the same info. that WROOT was trying to give me.   It just clicked and I was on my way.   Thanks again for your help with this.

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

                                   

                                  <!-- root element, all properties must be under this element -->
                                  <jive>
                                    <admin>
                                      <authorizedUsernames>jimuser</authorizedUsernames>
                                    </admin>
                                     <adminConsole>
                                      <!-- Disable either port by setting the value to -1 --> 
                                      <port>9090</port> 
                                      <securePort>9091</securePort>
                                    </adminConsole>

                                   

                                  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...