From 0ce7b391b0e8884c35614a261e9c4f0bf44014d2 Mon Sep 17 00:00:00 2001 From: Suraiya Hameed Date: Mon, 13 Mar 2017 15:03:27 -0700 Subject: [PATCH] Fix KerbAuthentication constructor --- .../com/microsoft/sqlserver/jdbc/AuthenticationJNI.java | 1 - .../com/microsoft/sqlserver/jdbc/KerbAuthentication.java | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/AuthenticationJNI.java b/src/main/java/com/microsoft/sqlserver/jdbc/AuthenticationJNI.java index 1f1ff6e4a..705d10ce0 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/AuthenticationJNI.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/AuthenticationJNI.java @@ -87,7 +87,6 @@ static int GetMaxSSPIBlobSize() { this.con = con; - System.out.println("connectionResiliencyRequested : "+connectionResiliencyRequested); if (connectionResiliencyRequested) { if (reconnecting) { if (authLogger.isLoggable(Level.FINER)) { diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/KerbAuthentication.java b/src/main/java/com/microsoft/sqlserver/jdbc/KerbAuthentication.java index bdea2f2ff..5f22ded3b 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/KerbAuthentication.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/KerbAuthentication.java @@ -299,13 +299,17 @@ private String makeSpn(String server, * @param address * @param port * @param ImpersonatedUserCred + * @param reconnecting + * @param loginSubject * @throws SQLServerException */ KerbAuthentication(SQLServerConnection con, String address, int port, - GSSCredential ImpersonatedUserCred) throws SQLServerException { - this(con, address, port); + GSSCredential ImpersonatedUserCred, + boolean reconnecting, + Subject loginSubject) throws SQLServerException { + this(con, address, port, reconnecting, loginSubject); peerCredentials = ImpersonatedUserCred; }