Remove kerberos session renewal because gokrb5 now performs renewals by default
[calcite-avatica-go.git] / http_client.go
index 6aa75bf..ca4afbb 100644 (file)
@@ -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
                }
        }