I rarely get a chance to contibute, and may get shot down here, but I think
I have a fix for implementation. The script I debugged to fix was from
Cistron 1.6.6. I had tried the current freeradius version of checkrad with
the same (not working) result. Therefore I am assuming (without
verification) this problem is the same on both checkrad scripts. My
apologies
for the static if that's not the case.
The "fix" to the timeout errors was found. I added a ton of debug
statements to checkrad and found that even though I had the password in the
naspassword file, and the checkrad script picked it up, it still forced a
"public" community string. My strings are not "public" and thus the script
failed.
My $login was SNMP (as that's what the directions I read carefully like a
good boy said to make it in the naspasswd file)
The problem comes starting with the if at line 322
if ($login && $login ne 'SNMP') {
I test true for $login and false for login ne SNMP. That causes me
to go to line 328 which is just else followed by $pass="public" which is
not what should happen.
I think line 328, if meant to be a default if someone messed up and didn't
put SNMP, should read:
} elsif ( $login ne 'SNMP') {
And that way if you do use SNMP as instructed, the $pass variable remains
what was read from the naspassword file, not "public".
Anyway, this fixes it for me. Hope this helps someone else.
Scott
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html