Skip to content

Commit

Permalink
error checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmturner committed Oct 27, 2018
1 parent 772f882 commit 3aa9e34
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/TGSExchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ func (cl *Client) GetServiceTicket(spn string) (messages.Ticket, types.Encryptio
realm := cl.Config.ResolveRealm(princ.NameString[len(princ.NameString)-1])

tgt, skey, err := cl.sessionTGT(realm)
if err != nil {
return tkt, skey, err
}

_, tgsRep, err := cl.TGSExchange(princ, realm, tgt, skey, false, 0)
if err != nil {
Expand Down
3 changes: 3 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ func (cl *Client) realmLogin(realm string) error {
}
}
tgt, skey, err := cl.sessionTGT(cl.Credentials.Realm)
if err != nil {
return err
}

spn := types.PrincipalName{
NameType: nametype.KRB_NT_SRV_INST,
Expand Down

0 comments on commit 3aa9e34

Please sign in to comment.