2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +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:
rudolfkoenig 2017-12-27 15:03:48 +00:00
parent 5d1fc6dd39
commit 6c7115e66e
2 changed files with 1 additions and 2 deletions

View File

@ -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);

View File

@ -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));
} }