Bläddra i källkod

Expose kerberos fast negotiation configuration

Signed-off-by: Ruben <ruben.vp8510@gmail.com>
Ruben Vargas 5 år sedan
förälder
incheckning
01ca5be441
2 ändrade filer med 3 tillägg och 2 borttagningar
  1. 1 0
      gssapi_kerberos.go
  2. 2 2
      kerberos_client.go

+ 1 - 0
gssapi_kerberos.go

@@ -34,6 +34,7 @@ type GSSAPIConfig struct {
 	Username           string
 	Password           string
 	Realm              string
+	DisablePAFXFAST    bool
 }
 
 type GSSAPIKerberosAuth struct {

+ 2 - 2
kerberos_client.go

@@ -42,10 +42,10 @@ func createClient(config *GSSAPIConfig, cfg *krb5config.Config) (KerberosClient,
 		if err != nil {
 			return nil, err
 		}
-		client = krb5client.NewClientWithKeytab(config.Username, config.Realm, kt, cfg)
+		client = krb5client.NewClientWithKeytab(config.Username, config.Realm, kt, cfg, krb5client.DisablePAFXFAST(config.DisablePAFXFAST))
 	} else {
 		client = krb5client.NewClientWithPassword(config.Username,
-			config.Realm, config.Password, cfg)
+			config.Realm, config.Password, cfg, krb5client.DisablePAFXFAST(config.DisablePAFXFAST))
 	}
 	return &KerberosGoKrb5Client{*client}, nil
 }