package krb5

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

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

Index

Variables

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.

Types

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

Auth implements krb5 (Kerberos) security provider.

func WithClient

func WithClient(client *client.Client) *Auth

WithClient creates a new Auth using the provided krb5 client.

func WithCredCache

func WithCredCache() (*Auth, error)

WithCredCache creates a new Auth configured from cached credentials.

func WithPassword

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

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

func (*Auth) Provider

func (*Auth) Provider() string

Provider implements auth.Auther

func (*Auth) Request

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

Request implements auth.Auther

Source Files

krb5.go krb5_unix.go

Version
v0.37.0 (latest)
Published
May 20, 2025
Platform
linux/amd64
Imports
13 packages
Last checked
3 days ago

Tools for package owners.