mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
96_allowed.pm: Fix globalpassword for telnet (Forum #81612)
git-svn-id: https://svn.fhem.de/fhem/trunk@15709 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5d1fc6dd39
commit
6c7115e66e
@ -175,7 +175,6 @@ allowed_Authenticate($$$$)
|
|||||||
my $pw = AttrVal($aName, "password", undef);
|
my $pw = AttrVal($aName, "password", undef);
|
||||||
if(!$pw) {
|
if(!$pw) {
|
||||||
$pw = AttrVal($aName, "globalpassword", undef);
|
$pw = AttrVal($aName, "globalpassword", undef);
|
||||||
return 2 if($pw && !defined($param));
|
|
||||||
$pw = undef if($pw && $cl->{NAME} =~ m/_127.0.0.1_/);
|
$pw = undef if($pw && $cl->{NAME} =~ m/_127.0.0.1_/);
|
||||||
}
|
}
|
||||||
return 0 if(!$pw);
|
return 0 if(!$pw);
|
||||||
|
@ -5356,7 +5356,7 @@ SecurityCheck()
|
|||||||
my @fnd;
|
my @fnd;
|
||||||
foreach my $sdev (devspec2array("TYPE=(telnet|FHEMWEB)")) {
|
foreach my $sdev (devspec2array("TYPE=(telnet|FHEMWEB)")) {
|
||||||
next if(!$defs{$sdev} || $defs{$sdev}{TEMPORARY});
|
next if(!$defs{$sdev} || $defs{$sdev}{TEMPORARY});
|
||||||
my $hash = { SNAME=>$sdev, TYPE=>$defs{$sdev}{TYPE} };
|
my $hash = { SNAME=>$sdev, TYPE=>$defs{$sdev}{TYPE}, NAME=>"SecurityCheck"};
|
||||||
push(@fnd, " $sdev is not password protected")
|
push(@fnd, " $sdev is not password protected")
|
||||||
if(!Authenticate($hash, undef));
|
if(!Authenticate($hash, undef));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user