Remove kerberos session renewal because gokrb5 now performs renewals by default


Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/commit/f6400276
Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/tree/f6400276
Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/diff/f6400276

Branch: refs/heads/master
Commit: f6400276e20cd8a084254aaf7193fcf2c88d3c7a
Parents: 06d33a3
Author: Francis Chuang <francis.chu...@boostport.com>
Authored: Tue Nov 14 10:58:18 2017 +1100
Committer: Francis Chuang <francis.chu...@boostport.com>
Committed: Tue Nov 14 11:33:41 2017 +1100

----------------------------------------------------------------------
 http_client.go | 8 --------
 1 file changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/f6400276/http_client.go
----------------------------------------------------------------------
diff --git a/http_client.go b/http_client.go
index 6aa75bf..ca4afbb 100644
--- a/http_client.go
+++ b/http_client.go
@@ -119,14 +119,6 @@ func NewHTTPClient(host string, authenticationConf 
httpClientAuthConfig) (*httpC
                                return nil, fmt.Errorf("error performing 
kerberos login with keytab: %s", err)
                        }
 
-                       session, err := 
kc.GetSessionFromRealm(authenticationConf.principal.realm)
-
-                       if err != nil {
-                               return nil, fmt.Errorf("error getting session 
from realm name: %s", err)
-                       }
-
-                       kc.EnableAutoSessionRenewal(session)
-
                        c.kerberosClient = kc
                }
        }

Reply via email to