kerberos

package
v3.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: MIT, Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnumerateUserResponse

type EnumerateUserResponse struct {
	Valid     bool
	ASREPHash string
}

EnumerateUserResponse is the response from EnumerateUser

type KerberosClient

type KerberosClient struct{}

Client is a kerberos client

func (*KerberosClient) EnumerateUser

func (c *KerberosClient) EnumerateUser(domain, controller string, username string) (EnumerateUserResponse, error)

EnumerateUser returns true if the user exists in the domain

If the user is not found, false is returned. If the user is found, true is returned. Optionally, the AS-REP hash is also returned if discovered.

func (*KerberosClient) GetServiceTicket added in v3.1.6

func (c *KerberosClient) GetServiceTicket(domain, controller string, username, password string, target, spn string) (TGS, error)

type TGS added in v3.1.6

type TGS struct {
	Ticket messages.Ticket
	Hash   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL