Remove kerberos session renewal because gokrb5 now performs renewals by default
authorFrancis Chuang <francis.chuang@boostport.com>
Mon, 13 Nov 2017 23:58:18 +0000 (10:58 +1100)
committerFrancis Chuang <francis.chuang@boostport.com>
Tue, 14 Nov 2017 00:33:41 +0000 (11:33 +1100)
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
                }
        }