cifs: check connection: bubble up NT_STATUS_LOGON_FAILURE
in the same manner as NT_STATUS_ACCESS_DENIED. It can be assumed to be a configuration error, so avoid showing the generic "storage <storeid> is not online". Reported in the community forum: https://forum.proxmox.com/threads/storage-is-not-online-cifs.99201/post-428858 Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
38431808b4
commit
5ef50a8262
@ -280,7 +280,7 @@ sub check_connection {
|
||||
|
||||
if (my $err = $@) {
|
||||
die "$out_str\n" if defined($out_str) &&
|
||||
($out_str =~ m/NT_STATUS_ACCESS_DENIED/);
|
||||
($out_str =~ m/NT_STATUS_(ACCESS_DENIED|LOGON_FAILURE)/);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user