Re: rlm_postgresql , accounting and Framed-IP-Address

This is a discussion on Re: rlm_postgresql , accounting and Framed-IP-Address within the FreeRADIUS Users forums, part of the Networking and Network Related category; Francisco Gimeno wrote: > hello.. Thanks for your answer!... > > then, how could I put the IP there? > ...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-14-2007
Phil Mayers
 
Posts: n/a
Default Re: rlm_postgresql , accounting and Framed-IP-Address

Francisco Gimeno wrote:
> hello.. Thanks for your answer!...
>
> then, how could I put the IP there?
> Is the post-auth hook the right place?


Yes, if you execute an SQL query in the post-auth section it can use
%{reply:Framed-IP-Address}

>
> 2007/2/12, Phil Mayers < p.mayers@imperial.ac.uk
> <mailto:p.mayers@imperial.ac.uk>>:
>
> Francisco Gimeno wrote:
> >
> > The %{reply:Framed-IP-Address} or %{Framed-IP-Address} isn't

> xlated at
> > all... SQL module is executed after sqlippool, so, that variable

> should
> > be available.

>
> Nop. Accounting replies contain NO attributes, therefore reply:Anything
> is invalid/empty.
>
> For accounting queries to log the IP address, your NAS must send the
> Framed-IP-Address attribute in the accounting request. If it doesn't (as
> it must not be) you can't log it.
>
> Consult the documentation for your NAS.
>
> You've undoubtedly taken that reply:Framed-IP-Address from the
> "post-auth" query where it is valid.
>
>
>
> ------------------------------------------------------------------------
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:22 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0