Commit 612bcf4c authored by Matt Tucker's avatar Matt Tucker Committed by matt

Further improved examples.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@5860 b35dd754-fafc-0310-a699-88a17e54d16e
parent 605f3cb7
......@@ -185,6 +185,10 @@ enable user integration.</p>
&lt;className&gt;org.jivesoftware.wildfire.user.JDBCUserProvider&lt;/className&gt;
&lt;/user&gt;
&lt;/provider&gt;
&lt;jdbcAuthProvider&gt;
&lt;passwordSQL&gt;SELECT password FROM user_account WHERE username=?&lt;/passwordSQL&gt;
&lt;passwordType&gt;plain&lt;/passwordType&gt;
&lt;/jdbcAuthProvider&gt;
&lt;jdbcUserProvider&gt;
&lt;loadUserSQL&gt;SELECT name,email FROM myUser WHERE username=?&lt;/loadUserSQL&gt;
&lt;userCountSQL&gt;SELECT COUNT(*) FROM myUser&lt;/userCountSQL&gt;
......@@ -241,6 +245,19 @@ integration (see above). Use the following settings to enable group integration.
&lt;className&gt;org.jivesoftware.wildfire.group.JDBCGroupProvider&lt;/className&gt;
&lt;/group&gt;
&lt;/provider&gt;
&lt;jdbcAuthProvider&gt;
&lt;passwordSQL&gt;SELECT password FROM user_account WHERE username=?&lt;/passwordSQL&gt;
&lt;passwordType&gt;plain&lt;/passwordType&gt;
&lt;/jdbcAuthProvider&gt;
&lt;jdbcUserProvider&gt;
&lt;loadUserSQL&gt;SELECT name,email FROM myUser WHERE username=?&lt;/loadUserSQL&gt;
&lt;userCountSQL&gt;SELECT COUNT(*) FROM myUser&lt;/userCountSQL&gt;
&lt;allUsersSQL&gt;SELECT username FROM myUser&lt;/allUsersSQL&gt;
&lt;searchSQL&gt;SELECT username FROM myUser WHERE&lt;/searchSQL&gt;
&lt;usernameField&gt;username&lt;/usernameField&gt;
&lt;nameField&gt;name&lt;/nameField&gt;
&lt;emailField&gt;email&lt;/emailField&gt;
&lt;/jdbcUserProvider&gt;
&lt;jdbcGroupProvider&gt;
&lt;groupCountSQL&gt;SELECT count(*) FROM myGroups&lt;/groupCountSQL&gt;
&lt;allGroupsSQL&gt;SELECT groupName FROM myGroups&lt;/allGroupsSQL&gt;
......
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