Re: confused by logging targets for rlm_perl

2012-02-22 Thread Alan DeKok
Olivier Bilodeau wrote:
> http://wiki.freeradius.org/Rlm_perl#Logging refers to:
> 0 - Debug
> 1 - Auth

  Those are wrong.  See src/include/radiusd.h, L_DBG, etc.

  I've fixed the Wiki.

> I expected Debug not to go out in radius.log and Auth to do since I
> specified Auth to yes in radiusd.conf.

  Yup.

> With radius -X, as expected, I got everything.
> 
> Am I missing something here? Is this a bug or a feature(tm)?

  Bug.  See the v2.1.x branch in git for patches to
src/modules/rlm_perl/example.pl

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


confused by logging targets for rlm_perl

2012-02-21 Thread Olivier Bilodeau
Hi there!

It's been a while.. François turned out to be our official
freeradius-users correspondent lately ;)

So, I'm changing some things in our rlm_perl module and tried to make a
better use of the logging facilities provided by the freeradius core.

http://wiki.freeradius.org/Rlm_perl#Logging refers to:
0 - Debug
1 - Auth
2 - Proxy
3 - Info
4 - Error

However in practice my tests today revealed behavior that I would prefer
be clarified by one of the gurus here.

With file logging, auth = yes and sending messages with
&radiusd::radlog() I found that:
Debug, Info and Error goes to the radius.log file while Auth does not.

I haven't tried Proxy or Acct (which is available according to
src/main/log.c).

I expected Debug not to go out in radius.log and Auth to do since I
specified Auth to yes in radiusd.conf.

With radius -X, as expected, I got everything.

Am I missing something here? Is this a bug or a feature(tm)?

Running freeradius 2.1.12.

Thanks,
-- 
Olivier Bilodeau
obilod...@inverse.ca  ::  +1.514.447.4918 *115  ::  www.inverse.ca
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence
(www.packetfence.org)
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html