Commit 7cc89052 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed authentication with DIGEST. JM-1186

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9861 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4d680695
......@@ -10,18 +10,16 @@
package org.jivesoftware.openfire.auth;
import org.jivesoftware.database.DbConnectionManager;
import org.jivesoftware.openfire.XMPPServer;
import org.jivesoftware.openfire.user.UserAlreadyExistsException;
import org.jivesoftware.openfire.user.UserManager;
import org.jivesoftware.openfire.user.UserNotFoundException;
import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.util.Log;
import org.jivesoftware.util.StringUtils;
import org.jivesoftware.util.JiveGlobals;
import org.jivesoftware.openfire.user.*;
import org.jivesoftware.openfire.XMPPServer;
import org.jivesoftware.database.DbConnectionManager;
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.*;
/**
* The JDBC auth provider allows you to authenticate users against any database
......@@ -195,10 +193,10 @@ public class JDBCAuthProvider implements AuthProvider {
String domain = username.substring(index + 1);
if (domain.equals(XMPPServer.getInstance().getServerInfo().getXMPPDomain())) {
username = username.substring(0, index);
} else {
// Unknown domain.
throw new UserNotFoundException();
}
} else {
// Unknown domain. Return authentication failed.
throw new UserNotFoundException();
}
return getPasswordValue(username);
}
......
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