On Wed, Nov 06, 2002 at 09:15:30AM +0100, Thomas Jalsovsky 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=....."
> 
 I know, that requires patches to source code, or another preprocess module.
Perhaps I should move to developers list :)

-- 

  Best regards,
  Alexey Chetroi

---
Smile... Tomorrow will be worse.   (c) Murphy's law

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

Reply via email to