Skip to content

Commit

Permalink
properly set DisablePAFXFAST param from CLI args (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
roobre authored Mar 24, 2021
1 parent 8869ae9 commit 5ac180d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,6 @@ func configureSASL(config *sarama.Config) error {
return fmt.Errorf("all sasl_gssapi_* arguments must be set for GSSAPI auth")
}

// enable/disable FAST negotiation that can cause issues with Active Directory
config.Net.SASL.GSSAPI.DisablePAFXFAST = ga.SaslGssapiDisableFASTNegotiation

config.Net.SASL.Mechanism = sarama.SASLTypeGSSAPI
config.Net.SASL.GSSAPI = sarama.GSSAPIConfig{
AuthType: sarama.KRB5_KEYTAB_AUTH,
Expand All @@ -254,6 +251,8 @@ func configureSASL(config *sarama.Config) error {
Username: args.GlobalArgs.SaslGssapiUsername,
KeyTabPath: args.GlobalArgs.SaslGssapiKeyTabPath,
KerberosConfigPath: args.GlobalArgs.SaslGssapiKerberosConfigPath,
// enable/disable FAST negotiation that can cause issues with Active Directory
DisablePAFXFAST: args.GlobalArgs.SaslGssapiDisableFASTNegotiation,
}
} else if ga.SaslMechanism == sarama.SASLTypeSCRAMSHA256 {
config.Net.SASL.Mechanism = sarama.SASLTypeSCRAMSHA256
Expand Down

0 comments on commit 5ac180d

Please sign in to comment.