Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
gokrb5
✓ github.com/jcmturner/gokrb5/v8
Authenticate a user with Kerberos using a password.
package main
import (
"fmt"
"github.com/jcmturner/gokrb5/v8/client"
"github.com/jcmturner/gokrb5/v8/config"
)
func main() {
cfg, _ := config.Load("/etc/krb5.conf")
cl := client.NewWithPassword("user", "REALM", "password", cfg)
err := cl.Login()
if err != nil {
fmt.Println("Login failed:", err)
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
8.4.4latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.