We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccb9193 commit 28097c2Copy full SHA for 28097c2
1 file changed
dcerpcauth/dcerpcauth.go
@@ -37,6 +37,9 @@ type Options struct {
37
// Debug can be set to enable debug output, for example with
38
// adauth.NewDebugFunc(...).
39
Debug func(string, ...any)
40
+
41
+ // Use raw NTLM and Kerberos instead of wrapping it in SPNEGO.
42
+ DisableSPNEGO bool
43
}
44
45
func (opts *Options) debug(format string, a ...any) {
@@ -63,7 +66,9 @@ func AuthenticationOptions(
63
66
return nil, err
64
67
65
68
- dcerpcOptions = append(dcerpcOptions, dcerpc.WithMechanism(ssp.SPNEGO))
69
+ if !upstreamOptions.DisableSPNEGO {
70
+ dcerpcOptions = append(dcerpcOptions, dcerpc.WithMechanism(ssp.SPNEGO))
71
+ }
72
73
switch {
74
case target.UseKerberos || creds.ClientCert != nil:
0 commit comments