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.
Click to show internal directories.
Click to hide internal directories.