gssapi

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSPIClient

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

SSPIClient implements ldap.GSSAPIClient interface. Depends on secur32.dll.

func NewSSPIClient

func NewSSPIClient() (*SSPIClient, error)

NewSSPIClient returns a client with credentials of the current user.

func NewSSPIClientWithCredentials

func NewSSPIClientWithCredentials(creds *sspi.Credentials) *SSPIClient

NewSSPIClientWithCredentials returns a client with the provided credentials.

func NewSSPIClientWithUserCredentials

func NewSSPIClientWithUserCredentials(domain, username, password string) (*SSPIClient, error)

NewSSPIClientWithUserCredentials returns a client using the provided user's credentials.

func (*SSPIClient) Close

func (c *SSPIClient) Close() error

Close deletes any established secure context and closes the client.

func (*SSPIClient) DeleteSecContext

func (c *SSPIClient) DeleteSecContext() error

DeleteSecContext destroys any established secure context.

func (*SSPIClient) InitSecContext

func (c *SSPIClient) InitSecContext(target string, token []byte) ([]byte, bool, error)

InitSecContext initiates the establishment of a security context for GSS-API between the client and server. See RFC 4752 section 3.1.

func (*SSPIClient) NegotiateSaslAuth

func (c *SSPIClient) NegotiateSaslAuth(token []byte, authzid string) ([]byte, error)

NegotiateSaslAuth performs the last step of the SASL handshake. See RFC 4752 section 3.1.

Jump to

Keyboard shortcuts

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