Re: [RADIATOR] Log file encoding

2015-06-18 Thread Hartmaier Alexander
@Heikki: please read Tom Christensens great article about encoding:
http://stackoverflow.com/questions/6162484/why-does-modern-perl-avoid-utf-8-by-default/

Short summary: each input value has to be decoded, each output encoded,
everything else is useless!

BR Alex

On 2015-06-18 10:36, Heikki Vatiainen wrote:
> On 18.6.2015 10.46, Tim Jones wrote:
>
>> Essentially what I have been specced to build, but it's a
>> batch-processing after-the-fact, so we only have the log files to go on.
>> I will suggest the idea of logging to something else in addition to
>> files (Syslog\SQL) but I have been rebuffed in the past on this same
>> point.
> What if you use something like Logstash? It can do similar to 'tail -f'
> to read the log file and forward the new entries as they are written
> into the log file.
>
>> Are there plans to add support for this? Looking into it it seems that,
>> for Perl, simply having a call to open(FILE, ">>$filename") replaced
>> with open(FILE, '>>:encoding(UTF-8)', $filename) should do the trick.
>> Since it looks as if all log file writing is done via
>> Radius::Util::append, would it be a hard feature to add?
> There are no plans yet, but I'll make a note about this.
>
> Meanwhile, check the 4.14 patches and goodies/logformat.cfg. The
> LogFormatHook is already present in 4.14 and the patches now have more
> examples about how to use it. You might be able to use the hooks to make
> sure the logs are formatted as required.
>
> Thanks,
> Heikki
>



*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be 
privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
___
radiator mailing list
radiator@open.com.au
http://www.open.com.au/mailman/listinfo/radiator


Re: [RADIATOR] Log file encoding

2015-06-18 Thread Heikki Vatiainen
On 18.6.2015 10.46, Tim Jones wrote:

> Essentially what I have been specced to build, but it's a
> batch-processing after-the-fact, so we only have the log files to go on.
> I will suggest the idea of logging to something else in addition to
> files (Syslog\SQL) but I have been rebuffed in the past on this same
> point.

What if you use something like Logstash? It can do similar to 'tail -f' 
to read the log file and forward the new entries as they are written 
into the log file.

> Are there plans to add support for this? Looking into it it seems that,
> for Perl, simply having a call to open(FILE, ">>$filename") replaced
> with open(FILE, '>>:encoding(UTF-8)', $filename) should do the trick.
> Since it looks as if all log file writing is done via
> Radius::Util::append, would it be a hard feature to add?

There are no plans yet, but I'll make a note about this.

Meanwhile, check the 4.14 patches and goodies/logformat.cfg. The 
LogFormatHook is already present in 4.14 and the patches now have more 
examples about how to use it. You might be able to use the hooks to make 
sure the logs are formatted as required.

Thanks,
Heikki

-- 
Heikki Vatiainen 

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.
___
radiator mailing list
radiator@open.com.au
http://www.open.com.au/mailman/listinfo/radiator


Re: [RADIATOR] Log file encoding

2015-06-18 Thread Tim Jones
Thanks for the response.

I recommend considering a separate utility to process the logs to your log
> storage system.


Essentially what I have been specced to build, but it's a batch-processing
after-the-fact, so we only have the log files to go on. I will suggest the
idea of logging to something else in addition to files (Syslog\SQL) but I
have been rebuffed in the past on this same point. Though since this also
fixes other problems (users leaving carriage-returns in user-name fields
splitting the log line when printed to a file), I may get a better
reception this time around.

There's currently no option to make sure all characters in log messages are
> from e.g., us-ascii.


Are there plans to add support for this? Looking into it it seems that, for
Perl, simply having a call to open(FILE, ">>$filename") replaced with
open(FILE,
'>>:encoding(UTF-8)', $filename) should do the trick. Since it looks as if
all log file writing is done via Radius::Util::append, would it be a hard
feature to add?

Many thanks for your time,


[image: Fon] Tim JonesSoftware Development+34 612345678
C/ Quintanavides 15, Edificio 2, Planta 1ª
Parque Empresarial Vía Norte de Metrovacesa
Las Tablas
28050 MadridSkype: tim.jones.fonAll information in this email is
confidential 

On 18 June 2015 at 09:20, Heikki Vatiainen  wrote:

> On 17.6.2015 11.10, Tim Jones wrote:
>
> > I've been asked to ensure that the log files created by our Radiator
> > instance are using a consistant particular character encoding. As when
> > doing some analysis, it has been discovered that some logs are latin1,
> > some us-ascii, and some utf-8.
>
> Mostly they should be in us-ascii, but some log messages include binary
> attribute values, output from libraries and other non-Radiator Perl
> modules, Radius messages, etc. and this can cause non-ascii characters
> in logs.
>
> > I cannot find any reference to character encoding within the Radiator
> > documentation, but of course all string-type attributes in the RADIUS
> > protocol are defined as UTF-8 encoded so I would have expected that of
> > the Radiator logs as well.
>
> The RFCs specify UTF-8, but it is not uncommon to see other encodings
> too. For example, a web captive portal may have its login page
> configured to use UTF-8 or ISO-8859-15. When a user logs in, their
> username may be passed unmodified to RADIUS authentication by the
> controller.
>
> > Is there an option supporting this within Radiator, or is it more do
> > with with the Perl environment as a whole?
>
> I recommend considering a separate utility to process the logs to your
> log storage system. Especially when you use debug logging, the logs will
> contain non-ascii characters. There's currently no option to make sure
> all characters in log messages are from e.g., us-ascii.
>
> Thanks,
> Heikki
>
> --
> Heikki Vatiainen 
>
> 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.
> ___
> radiator mailing list
> radiator@open.com.au
> http://www.open.com.au/mailman/listinfo/radiator
>
___
radiator mailing list
radiator@open.com.au
http://www.open.com.au/mailman/listinfo/radiator

Re: [RADIATOR] Log file encoding

2015-06-18 Thread Heikki Vatiainen
On 17.6.2015 11.10, Tim Jones wrote:

> I've been asked to ensure that the log files created by our Radiator
> instance are using a consistant particular character encoding. As when
> doing some analysis, it has been discovered that some logs are latin1,
> some us-ascii, and some utf-8.

Mostly they should be in us-ascii, but some log messages include binary 
attribute values, output from libraries and other non-Radiator Perl 
modules, Radius messages, etc. and this can cause non-ascii characters 
in logs.

> I cannot find any reference to character encoding within the Radiator
> documentation, but of course all string-type attributes in the RADIUS
> protocol are defined as UTF-8 encoded so I would have expected that of
> the Radiator logs as well.

The RFCs specify UTF-8, but it is not uncommon to see other encodings 
too. For example, a web captive portal may have its login page 
configured to use UTF-8 or ISO-8859-15. When a user logs in, their 
username may be passed unmodified to RADIUS authentication by the 
controller.

> Is there an option supporting this within Radiator, or is it more do
> with with the Perl environment as a whole?

I recommend considering a separate utility to process the logs to your 
log storage system. Especially when you use debug logging, the logs will 
contain non-ascii characters. There's currently no option to make sure 
all characters in log messages are from e.g., us-ascii.

Thanks,
Heikki

-- 
Heikki Vatiainen 

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.
___
radiator mailing list
radiator@open.com.au
http://www.open.com.au/mailman/listinfo/radiator


[RADIATOR] Log file encoding

2015-06-17 Thread Tim Jones
Hi,

I've been asked to ensure that the log files created by our Radiator
instance are using a consistant particular character encoding. As when
doing some analysis, it has been discovered that some logs are latin1, some
us-ascii, and some utf-8.

I cannot find any reference to character encoding within the Radiator
documentation, but of course all string-type attributes in the RADIUS
protocol are defined as UTF-8 encoded so I would have expected that of the
Radiator logs as well.

Is there an option supporting this within Radiator, or is it more do with
with the Perl environment as a whole?

Many thanks,

[image: Fon] Tim JonesSoftware Development+34 612345678
C/ Quintanavides 15, Edificio 2, Planta 1ª
Parque Empresarial Vía Norte de Metrovacesa
Las Tablas
28050 MadridSkype: tim.jones.fonAll information in this email is
confidential 
___
radiator mailing list
radiator@open.com.au
http://www.open.com.au/mailman/listinfo/radiator

Re: [RADIATOR] Log File

2011-02-09 Thread Heikki Vatiainen
On 02/09/2011 07:24 PM, Adam Gerson wrote:
> I am trying to troubleshoot a why particular machine can not 
> authenticate. Is there a log file where I could search by its MAC address?

The default log file is /var/log/radius/logfile

This comes from LogFile which is by default set to %L/logfile where %L
is the LogDir. LogDir is by default set to /var/log/radius

What gets logged into log file is controlled by the Trace setting. If
you run Radiator with Trace 4 (enables debug logging which *lots* of
messages), there is a good chance that you will get enough information
about the machine so you can do troubleshooting succesfully.

Lower Trace levels, the default is 0, may not produce enough information
for debugging purposes.

Please also see section "6.0 radiusd" about how to change the Trace
level dynamically without the need to do changes in the configuration.

Best regards,
Heikki

-- 
Heikki Vatiainen 

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.
___
radiator mailing list
radiator@open.com.au
http://www.open.com.au/mailman/listinfo/radiator


[RADIATOR] Log File

2011-02-09 Thread Adam Gerson
I am trying to troubleshoot a why particular machine can not 
authenticate. Is there a log file where I could search by its MAC address?

Thanks,
Adam
-- 
Adam Gerson
Assistant Director of Technology
Columbia Grammar and Prep School
phone. 212-749-6200 ex. 321
fax.  212-428-6806
ager...@cgps.org
http://www.cgps.org

___
radiator mailing list
radiator@open.com.au
http://www.open.com.au/mailman/listinfo/radiator


Re: (RADIATOR) Log File

2001-12-13 Thread Hugh Irvine


Hello Shane -

On Thu, 13 Dec 2001 22:05, Shane Malden wrote:
> Attached is a modified version of my config file. As i have multiple client
> NAS, how can i setup one Log file to record when a NAS makes a request?? If
> anyone is able to help, it would be appreciated.
>

Radiator will automatically create a log file called "logfile" in the 
specified LogDir which will be used to record every packet when the Trace 
level is set to 4. You can alter the file name by specifying a LogFile 
parameter in your configuration file.

regards

Hugh


-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.



(RADIATOR) Log File

2001-12-13 Thread Shane Malden



Attached is a modified version of my config file. 
As i have multiple client NAS, how can i setup one Log file to record when a NAS 
makes a request?? If anyone is able to help, it would be 
appreciated.
 
Regards,
Shane


Radius.cfg
Description: Binary data