krb5test

package
v0.0.0-...-f3a4e20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package krb5test contains test vectors for fake davidben and zephyr/zephyr credentials. The relevant keys are randomly generated, but a server that believes itself to be Server() with a key of ServerKey() and kvno of ServerKeyVersion() should accept authenticators made with Credential().

Index

Constants

View Source
const AuthTimeRaw = 946702800
View Source
const EndTimeRaw = 2145934800

Variables

View Source
var Realm = "ATHENA.MIT.EDU"
View Source
var ServerKeyBase64 = "bLf6Aonq1GW3KgYzsE0jNg=="
View Source
var ServerKeyEncType = krb5.ENCTYPE_AES128_CTS_HMAC_SHA1_96
View Source
var SessionKeyBase64 = "VmynPsJVhtihDcIiMRBjOg=="
View Source
var SessionKeyEncType = krb5.ENCTYPE_AES128_CTS_HMAC_SHA1_96
View Source
var TicketBase64 = "YYHnMIHkoAMCAQWhEBsOQVRIRU5BLk1JVC5FRFWiG" +
	"zAZoAMCAQKhEjAQGwZ6ZXBoeXIbBnplcGh5cqOBrT" +
	"CBqqADAgERooGiBIGfP1YF6tdilQQW50m+ij1NOWV" +
	"duz1x+xXKVTD+dzcYPTh0J0+Hkmi+gFmv+8coDsIL" +
	"+KLB4o+VuVVanfqlXcSY2LMTU4ZXuziV6TPv8Un6T" +
	"qqxjoH8ZdE18uye2zqHJd4WD2JBr1nWgsACUvHeZH" +
	"99QX2EOAu33cpif9pgvZ6v2A+d3xWsqGd1DvzLpBP" +
	"Rite3uMkgalFWsT/FOlX/IbqU"

Functions

func Client

func Client() *krb5.Principal

func Credential

func Credential() *krb5.Credential

func MakeServerKeyTab

func MakeServerKeyTab(ctx *krb5.Context) (*krb5.KeyTab, error)

func ServerKey

func ServerKey() *krb5.KeyBlock

func ServerKeyVersion

func ServerKeyVersion() uint

func Service

func Service() *krb5.Principal

func SessionKey

func SessionKey() *krb5.KeyBlock

func Ticket

func Ticket() []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL