Access requests logging to SQL: How to save comments for rejected requests?
George Koulyabin
jumbo at vinf.ru
Sat Apr 28 12:01:24 CEST 2012
No, I used reference to %{Module-Failure-Message}.
I changed reference from %{Module-Failure-Message} to %{control:Module-Failure-Message} and message 'User not found' droped to database. It works.
But when I sent request with wrong password, message 'Bad password' did not drop to database because module saved message to %{Module-Failure-Message}.
I found <list> what must be updated (after set of experiments).
...
authorize {
sql_auth
if ( notfound ) {
# Update 'request' as a <list>
update request {
# Replace attribute
Module-Failure-Message = 'User not found'
}
}
}
...
Thanks for Your help.
On Sat, Apr 28, 2012 at 08:54:06AM +0200, Alan DeKok wrote:
> How are you referencing it? You added it to the "control" list. Are
> you using %{control:Module-Failure-Message} ?
>
> Alan DeKok.
More information about the Freeradius-Users
mailing list