Registry / auth / jcmturner-gokrb5-v6

jcmturner-gokrb5-v6

JSON →
library6.1.1gogounverified

Package gokrb5 provides a Kerberos 5 implementation for Go.

go get gopkg.in/jcmturner/gokrb5.v6
INSTALL
IMPORT
SIG · JCMTURNER-GOKRB5-V
J
jcmturner-gokrb5-v6
authgov6.1.1
harness data pending
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
gopkg.in/jcmturner/gokrb5.v6

Load Kerberos config and authenticate with a password.

package main import ( "fmt" "gopkg.in/jcmturner/gokrb5.v6/client" "gopkg.in/jcmturner/gokrb5.v6/config" ) func main() { cfg, _ := config.Load("/etc/krb5.conf") cl := client.NewWithPassword("username", "REALM", "password", cfg) err := cl.Login() if err != nil { fmt.Println("Login failed:", err) } else { fmt.Println("Authenticated") } }
Debug
Known issues
gotchaThe v6 import path uses gopkg.in; direct github.com import may not work.
fix
Use gopkg.in/jcmturner/gokrb5.v6 as the import path.
affects: >=6.0.0
Upgrade
Version history
6.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Resources
jcmturner-gokrb5-v6 — go get jcmturner-gokrb5-v6 · libregistry