Skip to content

Commit

Permalink
Add temporary fix for python sspi with kerberos auth. (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
jankaspar authored Nov 18, 2020
1 parent f716b31 commit 971cc17
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/armada/authorization/kerberos.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ func (authService *KerberosAuthService) Authenticate(ctx context.Context) (Princ
user := adCredentials.EffectiveName + authService.userNameSuffix
groups := adCredentials.GroupMembershipSIDs

_ = grpc.SetHeader(ctx, metadata.Pairs(spnego.HTTPHeaderAuthResponse, spnegoNegTokenRespKRBAcceptCompleted))
// Original library sets ticket accepted header here, but this breaks python request-negotiate-sspi module
// removing the header as workaround before moving away from kerberos
// _ = grpc.SetHeader(ctx, metadata.Pairs(spnego.HTTPHeaderAuthResponse, spnegoNegTokenRespKRBAcceptCompleted))
return NewStaticPrincipal(user, groups), nil
}
log.Error("Failed to read ad credentials")
Expand Down

0 comments on commit 971cc17

Please sign in to comment.