Log auth message
BALSIANOK, Peter
Peter.Balsianok at orange.sk
Thu Jun 20 15:32:37 CEST 2013
Answer is simple, i don`t know how :) ( i don`t have propert skills )
-----Original Message-----
From: freeradius-users-bounces+peter.balsianok=orange.sk at lists.freeradius.org [mailto:freeradius-users-bounces+peter.balsianok=orange.sk at lists.freeradius.org] On Behalf Of Arran Cudbard-Bell
Sent: Thursday, June 20, 2013 3:01 PM
To: FreeRadius users mailing list
Subject: Re: Log auth message
On 20 Jun 2013, at 13:24, "BALSIANOK, Peter" <Peter.Balsianok at orange.sk> wrote:
> Hi,
>
> I have added test code into radius sourec code:
>
> radiusd at tdrad1test:~/freeradius-server-3.0.0$ diff -uN src/main/auth.c.orig src/main/auth.c
> --- src/main/auth.c.orig 2013-06-20 14:21:41.610790604 +0200
> +++ src/main/auth.c 2013-06-20 14:20:38.974815618 +0200
> @@ -146,6 +146,10 @@
> }
>
>
> + radlog( L_AUTH, "!!!! Show this row %s %s",
> + clean_username,
> + auth_name(buf, sizeof(buf), request, 1)
> + );
> RAUTH("%s: [%s%s%s] (%s)%s",
> msg,
> clean_username,
>
> After compilation, i sent test request.
>
> Log output:
> Thu Jun 20 14:20:46 2013 : Info: Loaded virtual server <default> Thu
> Jun 20 14:20:46 2013 : Info: Loaded virtual server default Thu Jun 20
> 14:20:46 2013 : Info: Ready to process requests.
> Thu Jun 20 14:20:55 2013 : Auth: !!!! Show this row gre at test.sk from
> client localhost port 0 cli 421995222222
>
> IMHO, I think the problem is in the RAUTH macro.
No, the RAUTH macro is fine. Why don't you run it under GDB and figure out what's happening?
-Arran
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list