diff --git a/PVE/Storage.pm b/PVE/Storage.pm index e04f2ac..44ab626 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -1196,9 +1196,9 @@ sub scan_cifs { # we only support Windows 2012 and newer, so just use smb3 my $cmd = ['/usr/bin/smbclient', '-m', 'smb3', '-d', '0', '-L', $server]; - push @$cmd, '-N' if !defined($user); push @$cmd, '-W', $domain if defined($domain); + push @$cmd, '-N' if !defined($password); local $ENV{USER} = $user if defined($user); local $ENV{PASSWD} = $password if defined($password);