[OpenSIPS-Users] Change Authentication Digest URI
Bogdan-Andrei Iancu
bogdan at opensips.org
Mon May 7 13:13:11 CEST 2012
Hi Andrea,
Seems to be an inconsistency in the code, as the aaa_proxy function
accepts as second optional param a custom auth username. But the aaa_www
does not :(
Try the attached patch and you should be able to pass a second param as
a variable containing the auth username.
Regards,
Bogdan
On 04/27/2012 05:58 PM, AndreaM wrote:
> Hi to all,
> I have to change the authentication Digest-URI value
> (http://www.opensips.org/Resources/DocsCoreVar18#toc5) before sending
> the AAA RADIUS request.
> For example:
>
> if (is_method("REGISTER"))
> {
> # Change here Digest-URI (before sending RADIUS request)
>
> if (!aaa_www_authorize("1.2.3.4")) {
> www_challenge("1.2.3.4", "1");
> exit;
> };
>
> I tried to:
> 1) set $adu pseudo-variable (no way, it's a read-only PV...)
> 2) parse the SIP message and change Digest-URI, using "subst()"
> function from TEXTOPS module. It didn't work.
> 3) use "radius_send_auth()" from AAA_RADIUS module, but I'd rather not
> use it (too much complex !).
>
> Anyone can suggest a way to change authentication Digest-URI value ?
> Thank you.
>
> AndreaM
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auth_aaa.patch
Type: text/x-patch
Size: 1241 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20120507/f41a8d70/attachment.bin>
More information about the Users
mailing list