(RADIATOR) stripping tag from reply itel value

Hugh Irvine hugh at open.com.au
Tue Jul 26 17:31:46 CDT 2005


Salut Laurent -

If all of the tags are of the form "n:" - ie. one numeric followed by  
a colon, then you might want to use a regular expression.


     my $value = ${$_[0]}->get_attr (‘attribute’);
     $value =~ s/\d\://;
     ${$_[1]}->change_attr (‘attribute’, $value);


I haven't tested the above, but you should get the idea.

regards

Hugh



On 26 Jul 2005, at 23:44, PREVOSTO, Laurent wrote:

> Hi,
>
>
>
> we have a radiator configured as a radius proxy that has a non  
> tagged dictionary.
>
> In some cases, it may receive answers from radiuses with tagged  
> dictionary. So we need to gets rid of the tag.
>
>
>
> I did a ReplyHook that looks like :
>
>
>
> my $value = substr (1, ${$_[0]}->get_attr (‘attribute’))
>
> ${$_[1]}->change_attr (‘attribute’, $value);
>
>
>
>
>
> It seems to works but is there a better or safer way of doing this ?
>
>
>
> Note : in that very case, the tag information is useless.
>
>
>
> Regards
>
>
>
> Laurent
>
>


NB:

Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/ 
radiator)?
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.


--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list