I get an undefined perform error though the perform exists within the code. How can I discover the rationale ? What strategies can I take advantage of to troubleshoot this case
I import:
"github.com/jcmturner/gokrb5/v8/shopper"
"github.com/jcmturner/gokrb5/v8/config"
"github.com/jcmturner/gokrb5/v8/credentials"
"github.com/jcmturner/gokrb5/v8/krberror"
"github.com/jcmturner/gokrb5/v8/spnego"
and might use efficiently shopper.NewWithPassword however not shopper.NewClientFromCCache that are each outlined in gokrb5/shopper/shopper.go at grasp · jcmturner/gokrb5 · GitHub
I’m unsure what’s inflicting your drawback, however I can construct a undertaking that makes use of each of the capabilities that you just point out.
go.mod
module temp
go 1.23.4
require github.com/jcmturner/gokrb5/v8 v8.4.4
require (
github.com/hashicorp/go-uuid v1.0.3 // oblique
github.com/jcmturner/aescts/v2 v2.0.0 // oblique
github.com/jcmturner/dnsutils/v2 v2.0.0 // oblique
github.com/jcmturner/gofork v1.7.6 // oblique
github.com/jcmturner/rpc/v2 v2.0.3 // oblique
golang.org/x/crypto v0.6.0 // oblique
golang.org/x/web v0.7.0 // oblique
)
foremost.go
package deal foremost
import (
"fmt"
"github.com/jcmturner/gokrb5/v8/shopper"
"github.com/jcmturner/gokrb5/v8/config"
"github.com/jcmturner/gokrb5/v8/credentials"
)
func foremost() {
c1 := shopper.NewWithPassword("", "", "", &config.Config{})
fmt.Println(c1)
c2, err := shopper.NewFromCCache(&credentials.CCache{}, &config.Config{})
fmt.Println(err)
fmt.Println(c2)
}
$ go construct foremost.go
$ ls -l
complete 3096
-rw-r--r--. 1 mike mike 409 Dec 23 15:25 go.mod
-rw-r--r--. 1 mike mike 6203 Dec 23 15:25 go.sum
-rwxr-xr-x. 1 mike mike 3150575 Dec 23 15:30 foremost
-rw-r--r--. 1 mike mike 365 Dec 23 15:24 foremost.go
So it’s in all probability one thing foolish. Maybe a typo?