smb: allow SPN (service principal name) to be configured

This enables connection to clusters.

Fixes #6515
This commit is contained in:
Nick Craig-Wood
2023-01-31 14:21:01 +00:00
parent 5ad942ed87
commit 62a7765e57
2 changed files with 16 additions and 3 deletions

View File

@@ -34,9 +34,10 @@ func (f *Fs) dial(ctx context.Context, network, addr string) (*conn, error) {
d := &smb2.Dialer{
Initiator: &smb2.NTLMInitiator{
User: f.opt.User,
Password: pass,
Domain: f.opt.Domain,
User: f.opt.User,
Password: pass,
Domain: f.opt.Domain,
TargetSPN: f.opt.SPN,
},
}