Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticationOptions ¶
func AuthenticationOptions( ctx context.Context, creds *adauth.Credential, target *adauth.Target, upstreamOptions *Options, ) (dcerpcOptions []dcerpc.Option, err error)
AuthenticationOptions returns dcerpc.Options for dcerpc.Dial or for constructing an DCERPC API client. It is possible to configure the SMB, PKINIT and debug behavior using the optional upstreamOptions argument.
func DCERPCCredentials ¶
func DCERPCCredentials(ctx context.Context, creds *adauth.Credential, options *Options) (credential.Credential, error)
Types ¶
type Options ¶
type Options struct { // SMBOptions holds options for the SMB dialer. This dialer is only used // with the named pipe transport. If SMBOptions is nil, encryption/sealing // will be enabled for the SMB dialer, specify an empty slice to disable // this default. SMBOptions []smb2.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 AuthenticationOptions function.
Click to show internal directories.
Click to hide internal directories.