mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
smb: allow SPN (service principal name) to be configured
This enables connection to clusters. Fixes #6515
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user