ntlmnego

package module
v0.0.0-...-3e38575 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 7 Imported by: 0

README

A custom NTLM Negotiator for go-ldap implementing support for TLS channel bindings.

Many AD deployments nowadays are configured to require channel bindings for TLS connections using authentication methods that support it (https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/domain-controller-ldap-server-channel-binding-token-requirements). The library go-ldap uses to handle ntlm authentication - go-ntlmssp - has no support for that, and also has no support for sasl-based integrity or confidentiality (which these same AD deployments require for non-TLS connections: https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/domain-controller-ldap-server-signing-requirements). go-ldap v3.4.11 added support for a 'custom NTLM Negotiator', which can be used to interpose between go-ldap and go-ntlmssp in order to modify the authentication blob. This can be leveraged to implement channel-bindings support.

Forked from https://github.com/RedTeamPentesting/adauth.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NTLMNegotiator

type NTLMNegotiator struct {
	Cert *x509.Certificate
}

func (*NTLMNegotiator) ChallengeResponse

func (n *NTLMNegotiator) ChallengeResponse(challenge []byte, username string, hash string) ([]byte, error)

func (*NTLMNegotiator) Negotiate

func (n *NTLMNegotiator) Negotiate(domain string, worktation string) ([]byte, error)

Jump to

Keyboard shortcuts

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