Access requests logging to SQL: How to save comments for rejected requests?

George Koulyabin jumbo at vinf.ru
Sat Apr 28 07:03:31 CEST 2012


I tried to implement Your advice.

1) Changes in configuration:

authorize {
...

                        sql_auth
                        if ( notfound ) {
                                update control {
                                        Module-Failure-Message := 'User not found'
                                }
                        }
...
}

2) Run RADIUS in debugging mode

Some debugging info:

...
[sql_auth] returns notfound
+++? if (notfound )
? Evaluating (notfound ) -> TRUE
+++? if (notfound ) -> TRUE
+++- entering if (notfound ) {...}
++++[control] returns notfound
+++- if (notfound ) returns notfound
...


And 'Module-Failure-Message' is empty.

Did I make mistake in configuration?



On Fri, Apr 27, 2012 at 03:11:27PM +0200, Alan DeKok wrote:
>   As always, run the server in debugging mode to see what it's doing.
> 
>   If the user isn't found, you'll probably have to add a message yourself.
> 


More information about the Freeradius-Users mailing list