Capturing Access-Reject data in the radpostauth table

Aaron Paetznick aaronp at critd.com
Wed Apr 28 22:17:07 CEST 2010


Huh.  Here's my complete SQL query:

         postauth_query = "INSERT INTO ${postauth_table} \
                           (username, pass, reply, authdate, message, 
nasipaddress) \
                           VALUES ( \
                           '%{User-Name}', \
                           '%{%{User-Password}:-%{Chap-Password}}', \
                           '%{reply:Packet-Type}', '%S', \
                           '%{Module-Failure-Message}', \
                           '%{NAS-IP-Address}')"

I did not add this yet:

post-auth {
     ...

     update reply {
         Reply-Message += "You got: %{Module-Failure-Message}"
     }
     ...
}


Do I need that entry in the post-auth block?  %{Module-Failure-Message} 
doesn't seem to be available by default in rlm_sql.


--Aaron


On 4/28/2010 2:57 PM, Alan DeKok wrote:
> Aaron Paetznick wrote:
>> %{Module-Failure-Message} seems to be empty for me.  Is there a
>> scope/prefix I should try?
>
>    Hmm... it *should* be there along with the packet attributes.
>
>    Alan DeKok.
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list