[OpenSIPS-Users] aaa_radius sets definition: malformed modparam
Vlad Paiu
vladpaiu at opensips.org
Wed Jun 20 15:04:01 CEST 2012
Hello,
You are calling the uri.host transformation wrong. You have
$ct.fields(uri){uri.host}
but it should be
$(ct.fields(uri){uri.host})
Regards,
Vlad Paiu
OpenSIPS Developer
http://www.opensips-solutions.com
On 06/20/2012 01:45 PM, Sebastien CRUAUX wrote:
> Hi,
>
> I would like to send custom RADIUS Access-Requests from Opensips to my
> RADIUS server. The documentation told me it was possible using the
> radius_send_auth() function. This function needs the definition of
> sets in aaa_radius module parameters in order to work.
>
> I followed the doc and defined a couple of sets but I always get the
> same error :
>
> ERROR:aaa_radius:parse_set_content: malformed modparam
> ERROR:aaa_radius:parse_sets_func: malformed modparam set1
> CRITICAL:core:yyerror: parse error in config file, line 258, column
> 18-19: Parameter <sets> not found in module <aaa_radius> - can't set
> ERROR:core:main: bad config file (1 errors)
>
> Here is the definition of my custom sets :
>
> modparam("aaa_radius", "sets", "set1 = (User-Name=$fU, Sip-Method=$rm,
> Digest-User-Name=$au, Digest-Realm=$ar, Digest-Nonce=$an,
> Digest-Algorithm=$auth.alg, Digest-Response=$auth.resp,
> Framed-IP-Address=$ct.fields(uri){uri.host}, NAS-IP-Address=$si)")
> modparam("aaa_radius", "sets", "set2 = (User-Name=$fU)")
>
> Can anyone tell me what could be wrong in this definition ? When I
> comment the definition of "set1", Opensips starts fine so I guess one
> of the AVPs makes it crash but I can't figure out which one.
> Thanks.
>
> Best Regards,
>
> Sebastien
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120620/fa04da2d/attachment.htm>
More information about the Users
mailing list