hep: go-hep.org/x/hep/xrootd/xrdproto/auth/krb5 Index | Files

package krb5

import "go-hep.org/x/hep/xrootd/xrdproto/auth/krb5"

Package krb5 contains the implementation of krb5 (Kerberos) security provider.


Package Files

krb5.go krb5_unix.go


var Default auth.Auther

Default is a Kerberos 5 client configured from cached credentials. If the credentials could not be correctly configured, Default will be nil.

var Type = [4]byte{'k', 'r', 'b', '5'}

Type indicates that krb5 (Kerberos) authentication protocol is used.

type Auth Uses

type Auth struct {
    // contains filtered or unexported fields

Auth implements krb5 (Kerberos) security provider.

func WithClient Uses

func WithClient(client *client.Client) *Auth

WithClient creates a new Auth using the provided krb5 client.

func WithCredCache Uses

func WithCredCache() (*Auth, error)

WithCredCache creates a new Auth configured from cached credentials.

func WithPassword Uses

func WithPassword(user, realm, password string) (*Auth, error)

WithPassword creates a new Auth configured from the provided user, realm and password.

func (*Auth) Provider Uses

func (*Auth) Provider() string

Provider implements auth.Auther

func (*Auth) Request Uses

func (a *Auth) Request(params []string) (*auth.Request, error)

Request implements auth.Auther

Package krb5 imports 13 packages (graph) and is imported by 1 packages. Updated 2019-05-31. Refresh now. Tools for package owners.