Commit 10e2d706 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed SASL EXTENAL for s2s. JM-1207

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9637 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2b57174d
......@@ -432,10 +432,11 @@ public class SASLAuthentication {
SocketConnection connection = (SocketConnection) session.getConnection();
try {
for (Certificate certificate : connection.getSSLSession().getPeerCertificates()) {
if (CertificateManager.getPeerIdentities((X509Certificate) certificate)
.contains(hostname)) {
authenticationSuccessful(session, hostname, null);
return Status.authenticated;
for (String identity : CertificateManager.getPeerIdentities((X509Certificate) certificate)) {
if (identity.equals(hostname) || identity.equals("*." + hostname)) {
authenticationSuccessful(session, hostname, null);
return Status.authenticated;
}
}
}
}
......
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