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

-- 
Karlsruher Institut für Technologie (KIT)
Steinbuch Centre for Computing (SCC)

Klara Mall
Netze und Kommunikation (NET)
Hermann-von-Helmholtz-Platz 1
76344 Eggenstein-Leopoldshafen
Telefon: +49 721 608-28630
E-Mail: klara.m...@kit.edu
Web: http://www.scc.kit.edu

KIT - Universität des Landes Baden-Württemberg und
nationales Forschungszentrum in der Helmholtz-Gemeinschaft
_______________________________________________
radiator mailing list
radiator@open.com.au
http://www.open.com.au/mailman/listinfo/radiator

Reply via email to