Skip to content

Commit

Permalink
Append original subject to list of principals.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraino committed Apr 29, 2021
1 parent dd2d656 commit 915ad93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command/ssh/ssh.go
Expand Up @@ -272,6 +272,9 @@ func createPrincipalsFromSubject(subject string) []string {
if local := subject[:i]; !strings.EqualFold(local, name) {
principals = append(principals, local)
}
}
// Append the original subject if different.
if subject != name {
principals = append(principals, subject)
}
return principals
Expand Down

0 comments on commit 915ad93

Please sign in to comment.