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 committed Aug 22, 2019
1 parent 43f1fb8 commit 455ac32
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 @@ -33,6 +33,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 455ac32

Please sign in to comment.