Log auth message
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Thu Jun 20 15:01:26 CEST 2013
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
More information about the Freeradius-Users
mailing list