Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DomainName ¶ added in v1.1.0
DomainName function returns the domain name from the user name.
Types ¶
type CCache ¶ added in v1.1.1
type CCache interface { Credential // CCache. CCache() *credentials.CCache }
func NewFromCCache ¶ added in v1.1.1
func NewFromCCache(un string, ccache *credentials.CCache, opts ...Option) CCache
type Credential ¶
type Credential interface { // User name. UserName() string // Domain name. DomainName() string // Workstation. Workstation() string }
Generic credential.
type Keytab ¶
type Keytab interface { Credential // Keytab. Keytab() *keytab.Keytab }
func NewFromKeytab ¶ added in v1.1.0
NewFromKeytab ...
type NTHash ¶ added in v1.0.1
type NTHash interface { // Credential. (UserName / DomainName). Credential // NT Hash. NTHash() []byte // KVNO. (optional for KRB5). KVNO() int }
func NewFromNTHash ¶ added in v1.0.1
NewFromNTHash function returns the NT Hash credentials using the NT hash string (hex-encoded MD4 of the password).
type Password ¶
type Password interface { // Credential. (UserName / DomainName). Credential // Password. Password() string }
Password credential.
func Anonymous ¶ added in v1.0.2
func Anonymous() Password
Anonymous function returns the anonymous password credentials.
func NewFromPassword ¶
NewFromPassword function returns the username/password credential.
func NewFromString ¶
Click to show internal directories.
Click to hide internal directories.