scan_cifs: add workgroup domain independent of user param

they are not really bound to each other

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2020-06-30 15:14:33 +02:00
parent be18d6dac7
commit fd55f51efa

View File

@ -1199,10 +1199,10 @@ sub scan_cifs {
if (defined($user)) {
die "password is required\n" if !defined($password);
push @$cmd, '-U', "$user\%$password";
push @$cmd, '-W', $domain if defined($domain);
} else {
push @$cmd, '-N';
}
push @$cmd, '-W', $domain if defined($domain);
my $res = {};
my $err = '';