]> git.proxmox.com Git - pve-storage.git/commitdiff
scan_cifs: do not enforce password for users
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 1 Jul 2020 10:07:19 +0000 (12:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 1 Jul 2020 10:11:59 +0000 (12:11 +0200)
there can be accounts with explicit null password others than the
mapped guest account.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage.pm

index 42e769ab4f91c0731cdcf42cf84ec1bc3a3cd17b..1de2bcb260dc0e69cdfffa6ee041eff86bd3f943 100755 (executable)
@@ -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);