Commit d52c7d70 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[JM-1230] LDAP profile changes are now keeping previous settings.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9725 b35dd754-fafc-0310-a699-88a17e54d16e
parent b892c6a3
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<% } %> <% } %>
<% if (initialSetup) { %> <% if (initialSetup) { %>
<h1><fmt:message key="setup.ldap.profile" />: <span><fmt:message key="setup.ldap.group_mapping" /></h1> <h1><fmt:message key="setup.ldap.profile" />: <span><fmt:message key="setup.ldap.group_mapping" /></span></h1>
<% } %> <% } %>
<!-- BEGIN jive-contentBox_stepbar --> <!-- BEGIN jive-contentBox_stepbar -->
......
...@@ -40,7 +40,11 @@ ...@@ -40,7 +40,11 @@
defaultUsernameField = JiveGlobals.getXMLProperty("ldap.usernameField"); defaultUsernameField = JiveGlobals.getXMLProperty("ldap.usernameField");
defaultSearchFields = JiveGlobals.getXMLProperty("ldap.searchFields"); defaultSearchFields = JiveGlobals.getXMLProperty("ldap.searchFields");
defaultSearchFilter = JiveGlobals.getXMLProperty("ldap.searchFilter"); defaultSearchFilter = JiveGlobals.getXMLProperty("ldap.searchFilter");
if (serverType.equals("activedirectory")) { vcardBean = new LdapUserProfile();
if (vcardBean.loadFromProperties()) {
// Loaded from stored settings, no need to do anything else.
}
else if (serverType.equals("activedirectory")) {
if (!vcardBean.loadFromProperties()) { if (!vcardBean.loadFromProperties()) {
// Initialize vCard mappings // Initialize vCard mappings
vcardBean.initForActiveDirectory(); vcardBean.initForActiveDirectory();
...@@ -52,7 +56,8 @@ ...@@ -52,7 +56,8 @@
if (defaultSearchFilter == null) { if (defaultSearchFilter == null) {
defaultSearchFilter = "(objectClass=organizationalPerson)"; defaultSearchFilter = "(objectClass=organizationalPerson)";
} }
} else { }
else {
if (!vcardBean.loadFromProperties()) { if (!vcardBean.loadFromProperties()) {
// Initialize vCard mappings // Initialize vCard mappings
vcardBean.initForOpenLDAP(); vcardBean.initForOpenLDAP();
......
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