Skip to content

Commit

Permalink
Expose kerberos fast negotiation configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvp8510 authored and Ruben committed Apr 20, 2020
1 parent 1c3eb66 commit e8220ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions gssapi_kerberos.go
Expand Up @@ -34,6 +34,7 @@ type GSSAPIConfig struct {
Username string
Password string
Realm string
DisablePAFXFAST bool
}

type GSSAPIKerberosAuth struct {
Expand Down
4 changes: 2 additions & 2 deletions kerberos_client.go
Expand Up @@ -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
}

0 comments on commit e8220ca

Please sign in to comment.