<%@ page import="org.jivesoftware.util.JiveGlobals" %> <%@ page import="org.jivesoftware.openfire.ldap.LdapManager" %> <%-- - $RCSfile$ - $Revision: $ - $Date: $ - - Copyright (C) 2006 Jive Software. All rights reserved. - - This software is published under the terms of the GNU Public License (GPL), - a copy of which is included in this distribution. --%> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <% // Get parameters boolean edit = request.getParameter("edit") != null; if (edit) { // Redirect to first step. response.sendRedirect("ldap-server.jsp"); return; } %> <fmt:message key="profile-settings.title"/> <% boolean isLDAP = "org.jivesoftware.openfire.ldap.LdapAuthProvider".equals( JiveGlobals.getXMLProperty("provider.auth.className")); StringBuilder sb = new StringBuilder(); for (String host : LdapManager.getInstance().getHosts()) { sb.append(host).append(", "); } String hosts = sb.toString(); if (hosts.trim().length() > 0) { hosts = hosts.substring(0, hosts.length()-2); } int port = LdapManager.getInstance().getPort(); String baseDN = LdapManager.getInstance().getBaseDN(); String adminDN = LdapManager.getInstance().getAdminDN(); %>

<% if (isLDAP) { %> <% } %>
<%= (isLDAP ? "" : "checked") %>> -
<%= (isLDAP ? "checked" : "") %>> -
 
: <%= hosts %>
: <%= port %>
: <%= baseDN %>
: <%= adminDN %>
">