powered by Jive Software

Provider changes in openfire.xml not discovered

Hi,

I’ve implemented a custom AuthProvider, UserProvider, and GroupProvider. I’ve placed a .jar containing these classes in openfire/lib, and I think everything’s ready to go. I edited openfire.xml to contain the following:

<?xml version="1.0" encoding="UTF-8"?>

<jive>

 <adminConsole>

  <port>9090</port>

  <securePort>9091</securePort>

 </adminConsole>

 <locale>en</locale>

<connectionProvider>

<className>org.jivesoftware.database.EmbeddedConnectionProvider

  </className>

 </connectionProvider>

 <hybridAuthProvider>

  <primaryProvider>

<className>org.jivesoftware.openfire.auth.DefaultAuthProvider</className>

  </primaryProvider>

  <secondaryProvider>

<className>com.mycompany.openfire.auth.AuthProviderImpl</className>

  </secondaryProvider>

 </hybridAuthProvider>

 <hybridGroupProvider>

  <primaryProvider>

<className>org.jivesoftware.openfire.auth.DefaultGroupProvider</className>

  </primaryProvider>

  <secondaryProvider>

<className>com.mycompany.openfire.auth.GroupProviderImpl</className>

  </secondaryProvider>

 </hybridGroupProvider>

 <hybridUserProvider>

  <primaryProvider>

<className>org.jivesoftware.openfire.auth.DefaultUserProvider

  </className>

  </primaryProvider>

  <secondaryProvider>

<className>com.mycompany.openfire.auth.UserProviderImpl

  </className>

  </secondaryProvider>

 </hybridUserProvider>

 <provider>

  <auth>

<className>org.jivesoftware.openfire.auth.HybridAuthProvider</className>

  </auth>

  <group>

<className>org.jivesoftware.openfire.auth.HybridGrouprovider</className>

  </group>

  <user>

<className>org.jivesoftware.openfire.auth.HybridUserProvider</className>

  </user>

 </provider>

 <setup>true</setup>

</jive>

Unfortunately these settings are not picked up when I restart the application. When I inspect the system properties in the admin, it reflects the default providers for everything. Screenshot attached. What’s the right way to put these settings into effect?

Thanks!

Jay

Edit those values from the admin console GUI, openfire mostly ignores its config XML file after being setup as it stores most of that stuff directly in the database now. IIRC