Versions in this module Expand all Collapse all v1 v1.0.2 Feb 27, 2024 v1.0.1 Feb 27, 2024 Changes in this version + const AttributeKeyADCredentials + type ADCredentials struct + EffectiveName string + FullName string + GroupMembershipSIDs []string + LogOffTime time.Time + LogOnTime time.Time + LogonDomainID string + LogonDomainName string + LogonServer string + PasswordLastSet time.Time + PrimaryGroupID int + UserID int + type CCache struct + Credentials []*Credential + DefaultPrincipal principal + Header header + Path string + Version uint8 + func LoadCCache(cpath string) (*CCache, error) + func (c *CCache) Contains(p types.PrincipalName) bool + func (c *CCache) GetClientCredentials() *Credentials + func (c *CCache) GetClientPrincipalName() types.PrincipalName + func (c *CCache) GetClientRealm() string + func (c *CCache) GetEntries() []*Credential + func (c *CCache) GetEntry(p types.PrincipalName) (*Credential, bool) + func (c *CCache) Unmarshal(b []byte) error + type Credential struct + Addresses []types.HostAddress + AuthData []types.AuthorizationDataEntry + AuthTime time.Time + Client principal + EndTime time.Time + IsSKey bool + Key types.EncryptionKey + RenewTill time.Time + SecondTicket []byte + Server principal + StartTime time.Time + Ticket []byte + TicketFlags asn1.BitString + type Credentials struct + func New(username string, realm string) *Credentials + func NewFromPrincipalName(cname types.PrincipalName, realm string) *Credentials + func (c *Credentials) AddAuthzAttribute(a string) + func (c *Credentials) Attributes() map[string]interface{} + func (c *Credentials) AuthTime() time.Time + func (c *Credentials) Authenticated() bool + func (c *Credentials) Authorized(a string) bool + func (c *Credentials) AuthzAttributes() []string + func (c *Credentials) CName() types.PrincipalName + func (c *Credentials) DisableAuthzAttribute(a string) + func (c *Credentials) DisplayName() string + func (c *Credentials) Domain() string + func (c *Credentials) EnableAuthzAttribute(a string) + func (c *Credentials) Expired() bool + func (c *Credentials) HasKeytab() bool + func (c *Credentials) HasPassword() bool + func (c *Credentials) Human() bool + func (c *Credentials) Keytab() *keytab.Keytab + func (c *Credentials) Password() string + func (c *Credentials) Realm() string + func (c *Credentials) RemoveAttribute(k string) + func (c *Credentials) RemoveAuthzAttribute(a string) + func (c *Credentials) SessionID() string + func (c *Credentials) SetADCredentials(a ADCredentials) + func (c *Credentials) SetAttribute(k string, v interface{}) + func (c *Credentials) SetAttributes(a map[string]interface{}) + func (c *Credentials) SetAuthTime(t time.Time) + func (c *Credentials) SetAuthenticated(b bool) + func (c *Credentials) SetCName(pn types.PrincipalName) + func (c *Credentials) SetDisplayName(s string) + func (c *Credentials) SetDomain(s string) + func (c *Credentials) SetHuman(b bool) + func (c *Credentials) SetRealm(s string) + func (c *Credentials) SetUserName(s string) + func (c *Credentials) SetValidUntil(t time.Time) + func (c *Credentials) UserName() string + func (c *Credentials) ValidUntil() time.Time + func (c *Credentials) WithKeytab(kt *keytab.Keytab) *Credentials + func (c *Credentials) WithPassword(password string) *Credentials