Commit 6fd4c00d authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Set default providers when setup is run again and default settings is selected.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10431 b35dd754-fafc-0310-a699-88a17e54d16e
parent ab1bc241
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<%@ page import="org.jivesoftware.openfire.XMPPServer"%> <%@ page import="org.jivesoftware.openfire.XMPPServer"%>
<%@ page import="org.jivesoftware.util.JiveGlobals"%> <%@ page import="org.jivesoftware.util.JiveGlobals"%>
<%@ page import="java.util.Map" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
...@@ -31,9 +32,22 @@ ...@@ -31,9 +32,22 @@
if ("default".equals(mode)) { if ("default".equals(mode)) {
// Set to default providers by deleting any existing values. // Set to default providers by deleting any existing values.
JiveGlobals.deleteProperty("provider.user.className"); @SuppressWarnings("unchecked")
JiveGlobals.deleteProperty("provider.group.className"); Map<String,String> xmppSettings = (Map<String,String>)session.getAttribute("xmppSettings");
JiveGlobals.deleteProperty("provider.auth.className"); xmppSettings.put("provider.auth.className",
org.jivesoftware.openfire.auth.DefaultAuthProvider.class.getName());
xmppSettings.put("provider.user.className",
org.jivesoftware.openfire.user.DefaultUserProvider.class.getName());
xmppSettings.put("provider.group.className",
org.jivesoftware.openfire.group.DefaultGroupProvider.class.getName());
xmppSettings.put("provider.vcard.className",
org.jivesoftware.openfire.vcard.DefaultVCardProvider.class.getName());
xmppSettings.put("provider.lockout.className",
org.jivesoftware.openfire.lockout.DefaultLockOutProvider.class.getName());
xmppSettings.put("provider.securityAudit.className",
org.jivesoftware.openfire.security.DefaultSecurityAuditProvider.class.getName());
xmppSettings.put("provider.admin.className",
org.jivesoftware.openfire.admin.DefaultAdminProvider.class.getName());
// Redirect // Redirect
response.sendRedirect("setup-admin-settings.jsp"); response.sendRedirect("setup-admin-settings.jsp");
return; return;
......
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