Hi, I find it difficult to integrate my existing OpenFire installation with an existing database.
I have 2 databases, namely (e.g. goals)
Inside my db_mainsite, I have a table called tbl_user where there are 2 columns, namely gw_userunique and gw_password (VARCHAR 255, however using SHA-1 hashing algo).
Both databases are located on the same machine (server), having the same physical location.
In my conf / openfire.xml I set the following lines
<jive> ... <jdbcProvider> <driver>com.mysql.jdbc.Driver</driver> <connectionString>jdbc:mysql://localhost/db_mainsite?user=username&password=secret</connectionString> </jdbcProvider> <provider> <auth> <className>org.jivesoftware.openfire.auth.JDBCAuthProvider</className> </auth> </provider> <jdbcAuthProvider> <passwordSQL>SELECT password FROM tbl_user WHERE gw_userunique=?</passwordSQL> <passwordType>sha1</passwordType> </jdbcAuthProvider> ... </jive>
Unfortunately, whenever I try to log in using the username + password stored in db_mainsite, it always fails.
I also have a restart of OpenFire.
Can someone tell me what is wrong?
Greetings
source share