Hello!
I’m trying to customize the table of users login Openfire, read the following topic,http://community.igniterealtime.org/message/161839 but I can notmake a user from another database table data to be acceptedlog-in the spark. In my case the integration is with the users table,moodle, so that users would like moodle could connect to my xmppserver, below is my config.xml
<?xml version="1.0" encoding="UTF-8"?>
<jive> <adminConsole> <port>9090</port> <securePort>9091</securePort> </adminConsole> <locale>pt_BR</locale> <connectionProvider> <className>org.jivesoftware.database.DefaultConnectionProvider</className> </connectionProvider> <database> <defaultProvider> <driver>com.mysql.jdbc.Driver</driver> <serverURL>jdbc:mysql://localhost:3306/open</serverURL> <username>root</username> <password></password> <minConnections>5</minConnections> <maxConnections>15</maxConnections> <connectionTimeout>1.0</connectionTimeout> </defaultProvider> </database> <setup>true</setup> <jdbcProvider> <driver>com.mysql.jdbc.Driver</driver> <connectionString>jdbc:mysql://localhost/moodle?user=root&password=</connectionString> </jdbcProvider> <provider> <auth> <className>org.jivesoftware.openfire.auth.JDBCAuthProvider</className> </auth> <user> <className>org.jivesoftware.openfire.user.JDBCUserProvider</className> </user> </provider> <jdbcAuthProvider> <passwordSQL>SELECT MD5(CONCAT(password,'n0royB`BlUvI2Gc[@Udnq%4}A,uV>!')) FROM mdl_user WHERE username=?</passwordSQL> <passwordType>plain</passwordType> </jdbcAuthProvider> <jdbcUserProvider> <loadUserSQL>SELECT CONCAT(firstname,' ',lastname),email FROM mdl_user WHERE username=?</loadUserSQL> <userCountSQL>SELECT COUNT(*) FROM mdl_user</userCountSQL> <allUsersSQL>SELECT username FROM mdl_user</allUsersSQL> <searchSQL>SELECT username FROM mdl_user WHERE</searchSQL> <usernameField>username</usernameField> <nameField>CONCAT(firstname,' ',lastname)</nameField> <emailField>email</emailField> </jdbcUserProvider> <admin> <authorizedUsernames>admin,testuser</authorizedUsernames>
</admin> </jive>
When trying to log it appears the following message: “Username or password is incorrect”
could someone help me?
now thanks to all!