On Wed, 6 Nov 2002, Alexey Chetroi wrote:
> On Tue, Nov 05, 2002 at 10:49:12AM -0500, Alan DeKok wrote:
> > > doc/variables.txt mentions that you can use %{Attribute-Name},
> > > but what if there are several attributes with the same name,
> > > eg Cisco-AVpair?
> >
> > The server doesn't handle that right now.
> >
> > > I just want to log ras-tx-speed and ras-rx-speed attributes
> > > from the cisco in sql table. Is there any trick?
> >
> > That's an even more difficult problem. You don't know the order of
> > the attributes, so you want to log Cisco-AVpair attributes which
> > contain certain values.
> >
> > Your best bet right now is to use some kind of external program to
> > do the work, or to write a module to pull the information you want out
> > of the attributes.
>
> Is it possible to rewrite attribute names eg in preprocess module,
> like cisco_vsa_hack. eg to convert from:
>
> Cisco-AVPair = "nas-rx-speed=31200"
> to
> nas-rx-speed=31200
This is not possible while there are many Cisco-AVPair AV-Pairs e.g.
Cisco-AVPair = "nas-rx-speed=31200"
Cisco-AVPair = "nas-tx-speed=31200"
preprocess doesn't know how to rewrite this to nas-rx-speed=31200
The cisco_vsa_hack can rewrite only pairs with type:
h323-connect-time = "h323-connect-time=....."
Thomas
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html