sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject git commit: SENTRY-431 - Sentry db provider client should attempt to refresh kerberos ticket before connection (Prasad via Brock)
Date Thu, 11 Sep 2014 21:19:31 GMT
Repository: incubator-sentry
Updated Branches:
  refs/heads/master 70c47e803 -> 67f84187c


SENTRY-431 - Sentry db provider client should attempt to refresh kerberos ticket before connection
(Prasad via Brock)


Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/67f84187
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/67f84187
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/67f84187

Branch: refs/heads/master
Commit: 67f84187c3c04af33a938c5be6a2086632c79385
Parents: 70c47e8
Author: Brock Noland <brock@apache.org>
Authored: Thu Sep 11 14:19:20 2014 -0700
Committer: Brock Noland <brock@apache.org>
Committed: Thu Sep 11 14:19:20 2014 -0700

----------------------------------------------------------------------
 .../provider/db/service/thrift/SentryPolicyServiceClient.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/67f84187/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
index 6895927..6252051 100644
--- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
+++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryPolicyServiceClient.java
@@ -21,7 +21,6 @@ package org.apache.sentry.provider.db.service.thrift;
 import java.io.IOException;
 import java.net.InetSocketAddress;
 import java.security.PrivilegedExceptionAction;
-import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -96,6 +95,9 @@ public class SentryPolicyServiceClient {
         baseOpen();
       } else {
         try {
+          if (ugi.isFromKeytab()) {
+            ugi.checkTGTAndReloginFromKeytab();
+          }
           ugi.doAs(new PrivilegedExceptionAction<Void>() {
             public Void run() throws TTransportException {
               baseOpen();


Mime
View raw message