keytab

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2017 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Overview

Package keytab implements Kerberos keytabs: https://web.mit.edu/kerberos/krb5-devel/doc/formats/keytab_file_format.html.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keytab

type Keytab struct {
	Version uint16
	Entries []entry
}

Keytab struct.

func Load

func Load(ktPath string) (kt Keytab, err error)

Load a Keytab file into a Keytab type.

func NewKeytab

func NewKeytab() Keytab

NewKeytab creates new, empty Keytab type.

func Parse

func Parse(b []byte) (kt Keytab, err error)

Parse byte slice of Keytab data into Keytab type.

func (*Keytab) GetEncryptionKey

func (kt *Keytab) GetEncryptionKey(nameString []string, realm string, kvno, etype int) (types.EncryptionKey, error)

GetEncryptionKey returns the EncryptionKey from the Keytab for the newest entry with the required kvno, etype and matching principal.

Jump to

Keyboard shortcuts

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