keytab

package
v8.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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 {
	Entries []entry
	// contains filtered or unexported fields
}

Keytab struct.

func Load

func Load(ktPath string) (*Keytab, error)

Load a Keytab file into a Keytab type.

func New added in v1.5.5

func New() *Keytab

New creates new, empty Keytab type.

func (*Keytab) GetEncryptionKey

func (kt *Keytab) GetEncryptionKey(princName types.PrincipalName, realm string, kvno int, etype int32) (types.EncryptionKey, error)

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

func (*Keytab) Marshal added in v1.5.5

func (kt *Keytab) Marshal() ([]byte, error)

Marshal keytab into byte slice

func (*Keytab) Unmarshal added in v1.5.5

func (kt *Keytab) Unmarshal(b []byte) error

Unmarshal byte slice of Keytab data into Keytab type.

func (*Keytab) Write added in v1.5.5

func (kt *Keytab) Write(w io.Writer) (int, error)

Write the keytab bytes to io.Writer. Returns the number of bytes written

Jump to

Keyboard shortcuts

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