smbauth

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dialer

func Dialer(
	ctx context.Context, creds *adauth.Credential, target *adauth.Target, options *Options,
) (*smb2.Dialer, error)

Dialer returns an SMB dialer which is prepared for authentication with the given credentials. The dialer can be further customized with options.SMBDialerOptions.

Types

type Options

type Options struct {
	// SMBOptions holds options for the SMB dialer. If SMBOptions is nil,
	// encryption/sealing will be enabled. Specify an empty slice to disable
	// this default.
	SMBOptions []msrpcSMB2.DialerOption

	// KerberosDialer is a custom dialer that is used to request Kerberos
	// tickets.
	KerberosDialer adauth.Dialer

	// Debug can be set to enable debug output, for example with
	// adauth.NewDebugFunc(...).
	Debug func(string, ...any)
}

Options holds options that modify the behavior of the Dialer function.

Jump to

Keyboard shortcuts

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