(RADIATOR) Null characters at end of syslog lines

Hugh Irvine hugh at open.com.au
Wed Feb 21 22:12:11 CST 2007


Hello Jan -

As far as I can see in the code in "Radius/AuthLogSYSLOG.pm",  
Radiator simply passes its normal log strings to the Sys::Syslog module.

I am therefore guessing that the extra terminating characters are  
being added at a lower level than Radiator.

A NULL at the end of a string is typical C/UNIX behaviour.

I don't know if this is configurable or not.

I'll ask Mike and let you know.

regards

Hugh


On 22 Feb 2007, at 08:36, Jan Tomasek wrote:

> Hello,
>
> I'm running Radiator 3.15. I've defined following authlog:
>
> <AuthLog SYSLOG>
>    Identifier           defaultAuthLog
>
>    Facility             local7
>    LogIdent             radiator
>    SuccessFormat        access-accept for %u
> (User-Name=%{Reply:User-Name}) at Proxy=%c (CSID=%{Calling-Station-Id}
> NAS=%{NAS-Identifier}/%N) EAP=%{HexAddress:EAP-Message}
>    FailureFormat        access-reject for %u
> (User-Name=%{Reply:User-Name}) at Proxy=%c (CSID=%{Calling-Station-Id}
> NAS=%{NAS-Identifier}/%N)
>    LogSuccess           1
>    LogFailure           1
> </AuthLog>
>
> it works fine, but problem is that at end of every line is added space
> followed by null character. That is bit problem for grep and other  
> apps.
> Is it some chance to get rid of that null character?
>
> Example of lines:
>
> Feb 21 06:25:27 radius1 radiator[14429]: Server started: Radiator 3.15
> on radius1 ^@
> Feb 21 06:25:40 radius1 radiator[14429]: access-accept for
> eduroampass_tester at vsb.cz (User-Name=eduroampass_tester at vsb.
> cz) at Proxy=147.32.5.45 (CSID=70-6F-6C-69-73-68 NAS=/127.0.0.1)  
> EAP=00 ^@
> Feb 21 22:35:46 radius1 radiator[28102]: access-reject for
> eduroampass_tester at vsb.cz (User-Name=) at Proxy=195.113.118.5
> (CSID=70-6F-6C-69-73-68 NAS=/127.0.0.1): Proxied
>
> '^@' is way how less display null character.
>
>
> Thanks for any help
> -- 
> -----------------------
> Jan Tomasek aka Semik
> http://www.tomasek.cz/
>



NB:

Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/ 
radiator)?
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
Includes support for reliable RADIUS transport (RadSec),
and DIAMETER translation agent.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.


--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list