Commit a0fba82c authored by Dele Olajide's avatar Dele Olajide
parents 5d005e91 8e1ae42d
...@@ -113,6 +113,7 @@ exit 0 ...@@ -113,6 +113,7 @@ exit 0
%{homedir}/bin/embedded-db-viewer.sh %{homedir}/bin/embedded-db-viewer.sh
%dir %{homedir}/conf %dir %{homedir}/conf
%config(noreplace) %{homedir}/conf/openfire.xml %config(noreplace) %{homedir}/conf/openfire.xml
%config(noreplace) %{homedir}/conf/security.xml
%config(noreplace) %{homedir}/conf/crowd.properties %config(noreplace) %{homedir}/conf/crowd.properties
%dir %{homedir}/lib %dir %{homedir}/lib
%{homedir}/lib/*.jar %{homedir}/lib/*.jar
......
...@@ -446,7 +446,7 @@ public class LocalOutgoingServerSession extends LocalSession implements Outgoing ...@@ -446,7 +446,7 @@ public class LocalOutgoingServerSession extends LocalSession implements Outgoing
String id = xpp.getAttributeValue("", "id"); String id = xpp.getAttributeValue("", "id");
// Get new stream features // Get new stream features
features = reader.parseDocument().getRootElement(); features = reader.parseDocument().getRootElement();
if (features != null && (features.element("mechanisms") != null || features.element("dialback") != null)) { if (features != null) {
// Check if we can use stream compression // Check if we can use stream compression
String policyName = JiveGlobals.getProperty("xmpp.server.compression.policy", Connection.CompressionPolicy.disabled.toString()); String policyName = JiveGlobals.getProperty("xmpp.server.compression.policy", Connection.CompressionPolicy.disabled.toString());
Connection.CompressionPolicy compressionPolicy = Connection.CompressionPolicy.valueOf(policyName); Connection.CompressionPolicy compressionPolicy = Connection.CompressionPolicy.valueOf(policyName);
...@@ -486,7 +486,7 @@ public class LocalOutgoingServerSession extends LocalSession implements Outgoing ...@@ -486,7 +486,7 @@ public class LocalOutgoingServerSession extends LocalSession implements Outgoing
} }
// Get new stream features // Get new stream features
features = reader.parseDocument().getRootElement(); features = reader.parseDocument().getRootElement();
if (features == null || features.element("mechanisms") == null) { if (features == null) {
log.debug("Error, EXTERNAL SASL was not offered."); log.debug("Error, EXTERNAL SASL was not offered.");
return null; return null;
} }
......
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