[RADIATOR] AuthLogSYSLOG.pm
Mike McCauley
mikem at open.com.au
Thu Apr 7 17:40:13 CDT 2011
Hi Klara,
thanks for reporting this.
It has been patched in the latest patch set.
Cheers.
On Friday 08 April 2011 07:25:10 am Klara Mall wrote:
> Hi,
>
> radiator 4.7 is running on Debian GNU/Linux lenny i386 (Perl v5.10.0)
> here. No problems with AuthLog SYSLOG.
>
> Just tested my configuration with radiator 4.7 on Debian GNU/Linux
> squeeze amd64 (Perl v5.10.1) and ran into trouble with Authlog SYSLOG.
>
> Relevant configuration settings in <AuthLog SYSLOG> clause:
> Facility local7
> LogSock udp
> LogHost loghost
> LogIdent radauth
>
> Result: Nothing is logged on loghost and radiator log is telling:
> Thu Apr 7 22:30:28 2011: ERR: Error while doing AuthLog SYSLOG: no
> connection to syslog available
> - udp connect: nobody listening at
> /usr/share/perl5/Radius/AuthLogSYSLOG.pm line 138
>
> The following patch fixes it:
> --- AuthLogSYSLOG.pm.orig 2011-04-07 23:16:09.000000000 +0200
> +++ AuthLogSYSLOG.pm 2011-04-07 23:16:16.000000000 +0200
> @@ -130,9 +130,9 @@
> my $logopt = &Radius::Util::format_special($self->{LogOpt}, $p);
> eval {
> # We reset these here in case there are multiple SYSLOGs
> - $Sys::Syslog::host = $self->{LogHost};
> setlogsock($self->{LogSock})
> if defined $self->{LogSock};
> + $Sys::Syslog::host = $self->{LogHost};
> openlog($ident, $logopt, $self->{Facility});
> syslog("$self->{Facility}|$self->{Priority}", $str);
> closelog()
>
>
> Regards
> Klara
--
Mike McCauley mikem at open.com.au
Open System Consultants Pty. Ltd
9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au
Phone +61 7 5598-7474 Fax +61 7 5598-7070
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.
More information about the radiator
mailing list