Versions in this module Expand all Collapse all v8 v8.4.4 Jul 21, 2024 Changes in this version + const KRB5_KPASSWD_ACCESSDENIED + const KRB5_KPASSWD_AUTHERROR + const KRB5_KPASSWD_BAD_VERSION + const KRB5_KPASSWD_HARDERROR + const KRB5_KPASSWD_INITIAL_FLAG_NEEDED + const KRB5_KPASSWD_MALFORMED + const KRB5_KPASSWD_SOFTERROR + const KRB5_KPASSWD_SUCCESS + func AssumePreAuthentication(b bool) func(*Settings) + func DisablePAFXFAST(b bool) func(*Settings) + func Logger(l *log.Logger) func(*Settings) + type Cache struct + Entries map[string]CacheEntry + func NewCache() *Cache + func (c *Cache) JSON() (string, error) + func (c *Cache) RemoveEntry(spn string) + type CacheEntry struct + AuthTime time.Time + EndTime time.Time + RenewTill time.Time + SPN string + SessionKey types.EncryptionKey + StartTime time.Time + Ticket messages.Ticket + type Client struct + Config *config.Config + Credentials *credentials.Credentials + func NewFromCCache(c *credentials.CCache, target []string, krb5conf *config.Config, ...) (*Client, error) + func NewWithHash(username, realm string, hash []byte, krb5conf *config.Config, ...) *Client + func NewWithKey(username, realm string, key []byte, krb5conf *config.Config, ...) *Client + func NewWithKeytab(username, realm string, kt *keytab.Keytab, krb5conf *config.Config, ...) *Client + func NewWithPassword(username, realm, password string, krb5conf *config.Config, ...) *Client + func (cl *Client) ASExchange(realm string, ASReq messages.ASReq, referral int) (messages.ASRep, error) + func (cl *Client) AddCacheEntries(c *credentials.CCache) error + func (cl *Client) AffirmLogin() error + func (cl *Client) ChangePasswd(newPasswd string) (bool, error) + func (cl *Client) Destroy() + func (cl *Client) Diagnostics(w io.Writer) error + func (cl *Client) GetCachedTicket(spn string) (messages.Ticket, types.EncryptionKey, bool) + func (cl *Client) GetServiceTicket(spn string) (messages.Ticket, types.EncryptionKey, error) + func (cl *Client) IsConfigured() (bool, error) + func (cl *Client) Key(et etype.EType, kvno int, krberr *messages.KRBError) (types.EncryptionKey, int, error) + func (cl *Client) Log(format string, v ...interface{}) + func (cl *Client) Login() error + func (cl *Client) Print(w io.Writer) + func (cl *Client) TGSExchange(tgsReq messages.TGSReq, kdcRealm string, tgt messages.Ticket, ...) (messages.TGSReq, messages.TGSRep, error) + func (cl *Client) TGSREQGenerateAndExchange(spn types.PrincipalName, kdcRealm string, tgt messages.Ticket, ...) (tgsReq messages.TGSReq, tgsRep messages.TGSRep, err error) + type Settings struct + func NewSettings(settings ...func(*Settings)) *Settings + func (s *Settings) AssumePreAuthentication() bool + func (s *Settings) DisablePAFXFAST() bool + func (s *Settings) JSON() (string, error) + func (s *Settings) Logger() *log.Logger