(RADIATOR) Changing parameter name

Hugh Irvine hugh at open.com.au
Thu Oct 7 00:51:07 CDT 2004


Hello Ricardo -

You will need to do this in a PreClientHook which parses the attributes 
and does what you describe.

There are some example hooks in the file "goodies/hooks.txt" and 
someone posted something similar for dealing with cisco-avpairs to the 
mailing list relatively recently.

regards

Hugh



On 7 Oct 2004, at 00:48, Ricardo Martinez wrote:

> Hello list.
> 	I have a acc and auth messages coming to my RADIATOR server.  These
> messages look like this:
> Attributes:
> 	User-Name = "ricardo at sipproxy.mydomain.com"
> 	Digest-Attributes = "<1><21>sipproxy.mydomain.com"
> 	Digest-Attributes = "<2>*41646f972e82fcbf472f434aeee4c3f8e9ca608c"
> 	Digest-Attributes = "<4><25>sip:sipproxy.mydomain.com"
> 	Digest-Attributes = "<3><10>REGISTER"
> 	Digest-Attributes = "<5><6>auth"
> 	Digest-Response = "6b578f793a921c390a708f0feede320f"
> 	Service-Type = Sip-Session
> 	Sip-Uri-User = "5555832352"
> 	NAS-IP-Address = 127.0.0.1
> 	NAS-Port = 5060
>
> Is possible to make some manipulation of this particular message and 
> turn it
> into this:?
>
> Attributes:
> 	User-Name = "ricardo at sipproxy.mydomain.com"
> 	Realm = "<1><21>sipproxy.mydomain.com"
> 	Call-id = "<2>*41646f972e82fcbf472f434aeee4c3f8e9ca608c"
> 	Uri = "<4><25>sip:sipproxy.mydomain.com"
> 	Method = "<3><10>REGISTER"
> 	Type = "<5><6>auth"
> 	Nonce = "6b578f793a921c390a708f0feede320f"
> 	Service-Type = Sip-Session
> 	Sip-Uri-User = "5555832352"
> 	NAS-IP-Address = 127.0.0.1
> 	NAS-Port = 5060
>
>
> I want change the parameters named "Digest-Attributes" in those listed
> before.
>
> Can someone give an example of how i can do this?
> Thanks in advance.
> Best Regards
>
> Ricardo
>
> --
> 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.
>
>

NB: I am travelling this week, so there may be delays in our 
correspondence.

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, 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