Documentation ¶
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 ¶
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.