projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5085e8b
)
Fix USR-Hiper SNMP code to match the cisco snmp bit.
author
aland
<aland>
Tue, 15 Oct 2002 17:33:31 +0000
(17:33 +0000)
committer
aland
<aland>
Tue, 15 Oct 2002 17:33:31 +0000
(17:33 +0000)
src/main/checkrad.pl.in
patch
|
blob
|
history
diff --git
a/src/main/checkrad.pl.in
b/src/main/checkrad.pl.in
index
738552e
..
0ee3b7e
100644
(file)
--- a/
src/main/checkrad.pl.in
+++ b/
src/main/checkrad.pl.in
@@
-322,14
+322,14
@@
sub cisco_snmp {
# Look up community string in naspasswd file.
my ($login, $pass) = naspasswd($ARGV[1], 1);
- if ($login && $login ne 'SNMP') {
+ if ($login eq '') {
+ $pass = 'public';
+ } elsif ($login ne 'SNMP') {
if ($debug) {
print LOG
" Error: Need SNMP community string for $ARGV[1]\n";
}
return 2;
- } elsif ( $login ne 'SNMP') {
- $pass = "public";
}
my $port = $ARGV[2];