Skip to content

Commit

Permalink
Support service principal with slash
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Heider authored and ah- committed Apr 21, 2018
1 parent d592c23 commit 2d28501
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion messages/Ticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package messages
import (
"crypto/rand"
"fmt"
"strings"
"time"

"github.com/jcmturner/gofork/encoding/asn1"
Expand Down Expand Up @@ -188,7 +189,7 @@ func MarshalTicketSequence(tkts []Ticket) (asn1.RawValue, error) {
func (t *Ticket) DecryptEncPart(keytab keytab.Keytab, sa string) error {
var upn []string
if sa != "" {
upn = []string{sa}
upn = strings.Split(sa, "/")
} else {
upn = t.SName.NameString
}
Expand Down

0 comments on commit 2d28501

Please sign in to comment.