Problems with Database Integration

I’ve spent the better part of my evening trying to get openfire to pull user data from my Postgresql databases.

I cannot seem to find an error or debug log anywhere, so I am flying blind. Can someone please help? I followed the guide as is laid out:

I even save my passwords in pgp_sym_encrypt bytea fields - i created a view which decrypts them for Openfire. Any clues?

Here is openfire.xml:

<?xml version=“1.0” encoding=“UTF-8”?>


This file stores bootstrap properties needed by Openfire.

Property names must be in the format: “”

That will be stored as:








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





<!-- Use this section to define users that will have admin privileges. Below,

you will find two ways to specify which users are admins. Admins will

have access to the admin console (only local users) and may have also access

to other functionalities like ad-hoc commands. -->

<!-- By default, only the user with the username “admin” can login

to the admin console. Alternatively, you can specify a comma-delimitted

list usernames that should be authorized to login to the admin console

by setting the <authorizedUsernames> field below. -->

<!-- <authorizedUsernames>Rasheek, Cryn</authorizedUsernames> -->

<!-- Comma-delimitted list of bare JIDs. The JIDs may belong to local

or remote users. -->

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



<!-- 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, This setting is generally only useful

on multi-homed servers. -->







<className>org.jivesoftware.database.DefaultConnectionProvider</classN ame>









<testSQL>select 1</testSQL>










<connectionString>jdbc:postgresql://localhost/furrymx?user=orion&pass word=hidden</connectionString>




<className>org.jivesoftware.openfire.auth.JDBCAuthProvider</className& gt;



<className>org.jivesoftware.openfire.user.JDBCUserProvider</className& gt;




<passwordSQL>SELECT password FROM xmpp_users WHERE username=’?’</passwordSQL>




<loadUserSQL>SELECT fullname,email FROM xmpp_users WHERE username=’?’</loadUserSQL>

<userCountSQL>SELECT COUNT(*) FROM xmpp_users</userCountSQL>

<allUsersSQL>SELECT username FROM xmpp_users</allUsersSQL>

<searchSQL>SELECT username FROM xmpp_users WHERE</searchSQL>