Commit 0a104fa2 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Auth provider and user provider were using wrong property name (JM-786).

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4608 b35dd754-fafc-0310-a699-88a17e54d16e
parent d7a2a77f
......@@ -86,8 +86,8 @@
...
<jdbcProvider>
<driver>com.mysql.jdbc.Driver</driver>
<connectionString>jdbc:mysql://localhost/dbname?user=username&password=secret</connectionString>
</jdbcProvider>
<connectionString>jdbc:mysql://localhost/dbname?user=username&password=secret</connectionString>
</jdbcProvider>
...
</jive>
</pre>
......
......@@ -72,15 +72,15 @@ public class JDBCAuthProvider implements AuthProvider {
*/
public JDBCAuthProvider() {
// Load the JDBC driver and connection string.
String jdbcDriver = JiveGlobals.getXMLProperty("jdbcProvider.jdbcDriver.className");
try {
Class.forName(jdbcDriver).newInstance();
}
catch (Exception e) {
Log.error("Unable to load JDBC driver: " + jdbcDriver, e);
return;
}
connectionString = JiveGlobals.getXMLProperty("jdbcProvider.jdbcConnString");
String jdbcDriver = JiveGlobals.getXMLProperty("jdbcProvider.driver");
try {
Class.forName(jdbcDriver).newInstance();
}
catch (Exception e) {
Log.error("Unable to load JDBC driver: " + jdbcDriver, e);
return;
}
connectionString = JiveGlobals.getXMLProperty("jdbcProvider.connectionString");
// Load SQL statements.
passwordSQL = JiveGlobals.getXMLProperty("jdbcAuthProvider.passwordSQL");
......
......@@ -76,7 +76,7 @@ public class JDBCUserProvider implements UserProvider {
*/
public JDBCUserProvider() {
// Load the JDBC driver and connection string.
String jdbcDriver = JiveGlobals.getXMLProperty("jdbcProvider.jdbcDriver.className");
String jdbcDriver = JiveGlobals.getXMLProperty("jdbcProvider.driver");
try {
Class.forName(jdbcDriver).newInstance();
}
......@@ -84,7 +84,7 @@ public class JDBCUserProvider implements UserProvider {
Log.error("Unable to load JDBC driver: " + jdbcDriver, e);
return;
}
connectionString = JiveGlobals.getXMLProperty("jdbcProvider.jdbcConnString");
connectionString = JiveGlobals.getXMLProperty("jdbcProvider.connectionString");
// Load database statements for user data.
loadUserSQL = JiveGlobals.getXMLProperty("jdbcUserProvider.loadUserSQL");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment