Skip to content

Commit

Permalink
fixup! Add krb5 ticket detection functionality under ad
Browse files Browse the repository at this point in the history
Add more context to the error message when krb5_init_context fails.
  • Loading branch information
GabrielNagy committed Feb 10, 2024
1 parent 1c744d8 commit 8303d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ad/krb5.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func TicketPath() (string, error) {
cKrb5cc, err := C.get_ticket_path()
defer C.free(unsafe.Pointer(cKrb5cc))
if err != nil {
return "", err
return "", fmt.Errorf(gotext.Get("error initializing krb5 context, krb5_error_code: %d", err))
}
krb5cc := C.GoString(cKrb5cc)
if krb5cc == "" {
Expand Down

0 comments on commit 8303d54

Please sign in to comment.