[pve-devel] applied: [PATCH storage 3/5] scan_cifs: do not enforce password for users

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Jul 1 12:13:16 CEST 2020


there can be accounts with explicit null password others than the
mapped guest account.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 PVE/Storage.pm | 1 -
 1 file changed, 1 deletion(-)

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index 42e769a..1de2bcb 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -1198,7 +1198,6 @@ sub scan_cifs {
     my $cmd = ['/usr/bin/smbclient', '-m', 'smb3', '-d', '0', '-L', $server];
     push @$cmd, '-N' if !defined($user);
     push @$cmd, '-W', $domain if defined($domain);
-    die "password is required\n" if defined($user) && !defined($password);
 
     local $ENV{USER} = $user if defined($user);
     local $ENV{PASSWD} = $password if defined($password);
-- 
2.20.1





More information about the pve-devel mailing list