Skip to content

Commit

Permalink
fix tab
Browse files Browse the repository at this point in the history
  • Loading branch information
YUUKKY committed Feb 12, 2023
1 parent 5fb462e commit 60daef9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gssapi_kerberos.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type GSSAPIConfig struct {
Username string
Password string
Realm string
Host string
Host string
DisablePAFXFAST bool
}

Expand Down Expand Up @@ -212,10 +212,10 @@ func (krbAuth *GSSAPIKerberosAuth) Authorize(broker *Broker) error {
// Construct SPN using serviceName and host
// SPN format: <SERVICE>/<FQDN>

host := krbAuth.Config.Host
if host == "" {
host := strings.SplitN(broker.addr, ":", 2)[0] // Strip port part
}
host := krbAuth.Config.Host
if host == "" {
host := strings.SplitN(broker.addr, ":", 2)[0] // Strip port part
}
spn := fmt.Sprintf("%s/%s", broker.conf.Net.SASL.GSSAPI.ServiceName, host)

ticket, encKey, err := kerberosClient.GetServiceTicket(spn)
Expand Down

0 comments on commit 60daef9

Please sign in to comment.