gokrb5.v7: gopkg.in/jcmturner/gokrb5.v7/keytab Index | Files

package keytab

import "gopkg.in/jcmturner/gokrb5.v7/keytab"

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


Package Files


type Keytab Uses

type Keytab struct {
    Entries []entry
    // contains filtered or unexported fields

Keytab struct.

func Load Uses

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

Load a Keytab file into a Keytab type.

func New Uses

func New() *Keytab

New creates new, empty Keytab type.

func (*Keytab) GetEncryptionKey Uses

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 Uses

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

Marshal keytab into byte slice

func (*Keytab) Unmarshal Uses

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

Unmarshal byte slice of Keytab data into Keytab type.

func (*Keytab) Write Uses

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

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

Package keytab imports 9 packages (graph) and is imported by 42 packages. Updated 2020-02-06. Refresh now. Tools for package owners.