<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Does anyone have an idea ? It seems the problem lies in the
formatting of the authentication request.<br>
<br>
Indeed, I added a xlog in opensips just before the call to
radius_send_auth() in order to check if all the pseudo variables I
put in my custom AVPs are correctly recognized by Opensips and it
seems they are :<br>
<br>
<small><font face="Courier New, Courier, monospace">Jun 21 12:44:05
WWW_64Bits ./opensips[17927]: Sip-URI-User=37493210064,
User-Name=37493210064, Sip-Method=REGISTER,
Digest-User-Name=37493210064, Digest-Realm=halys.fr,
Digest-Nonce=4fe2fb13000000002e38b48919f0b3196bf73cb9b4d65a77,
Digest-Algorithm=MD5,
Digest-Response=7e87b71a1b6b80f20329d281835305dd,
Framed-IP-Address=192.168.1.18, NAS-IP-Address=78.xxx.xxx.xxx</font></small><br>
<br>
Best Regards,<br>
<br>
Sebastien<br>
<br>
Le 20/06/2012 18:27, Sebastien CRUAUX a écrit :
<blockquote cite="mid:4FE1FA01.3010408@halys.fr" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Unfortunately, now I am facing another issue...<br>
<br>
Here is my input set :<br>
<br>
<small><font face="Courier New, Courier, monospace">modparam("aaa_radius",
"sets", "set1 = (User-Name=$fU, Sip-Method=$rm,
Digest-User-Name=$au, Digest-Realm=$ar, <br>
Digest-Nonce=$an,
Digest-Algorithm=$auth.alg, Digest-Response=$auth.resp, <br>
Framed-IP-Address=$(ct.fields(uri){uri.host}),
NAS-IP-Address=$si)")</font></small><br>
<br>
and here is what I get in my Access-Request :<br>
<br>
<small><font face="Courier New, Courier, monospace"> Attribute
Value Pairs<br>
AVP: l=6 t=NAS-IP-Address(4): 78.xxx.xxx.xxx
// Source IP of the REGISTER request<br>
AVP: l=6 t=Framed-IP-Address(8): 0.0.0.0<br>
AVP: l=34 t=Digest-Response(206):
257b8dd004056e89d347dc396898102b<br>
AVP: l=7 t=Digest-Attributes(207): 06054D4435<br>
AVP: l=52 t=Digest-Attributes(207):
023234666531663234373030303030303031636563383464...<br>
AVP: l=12 t=Digest-Attributes(207):
010A68616C79732E6672<br>
AVP: l=15 t=Digest-Attributes(207):
0A0D3337343933323130303634<br>
AVP: l=6 t=Error-Cause(101): Unknown(128)<br>
AVP: l=13 t=User-Name(1): 37493210064<br>
AVP: l=6 t=NAS-Port(5): 5060<br>
AVP: l=6 t=NAS-IP-Address(4): 172.17.1.126</font><font
face="Courier New, Courier, monospace"> // local
IP of my Opensips server</font></small><br>
<br>
Why do the AVPs Digest-Attributes, Error-Cause, NAS-Port and the
2nd NAS-IP-Address appear while I never asked for them in my set ?<br>
<br>
Moreover, some of the AVPs I asked for are not present
(Sip-Method, Digest-User-Name, Digest-Realm, Digest-Nonce,
Digest-Algorithm) and the AVP Framed-IP-Address contains 0.0.0.0
while it should contain the IP address in the Contact URI.<br>
Thanks for your help.<br>
<br>
Best Regards,<br>
<br>
Sebastien<br>
<br>
Le 20/06/2012 15:07, Sebastien CRUAUX a écrit :
<blockquote cite="mid:4FE1CB17.3030209@halys.fr" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Thanks Vlad, it works ! :)<br>
<br>
Regards,<br>
<br>
Sebastien<br>
<br>
Le 20/06/2012 15:04, Vlad Paiu a écrit :
<blockquote cite="mid:4FE1CA41.3090301@opensips.org" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hello,<br>
<br>
You are calling the uri.host transformation wrong. You have <small><font
face="Courier New, Courier, monospace"><br>
$ct.fields(uri){uri.host}</font></small><br>
but it should be<br>
<small><font face="Courier New, Courier,
monospace">$(ct.fields(uri){uri.host}</font></small>)<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
<br>
On 06/20/2012 01:45 PM, Sebastien CRUAUX wrote:
<blockquote cite="mid:4FE1A9AF.5030206@halys.fr" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi,<br>
<br>
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.<br>
<br>
I followed the doc and defined a couple of sets but I always
get the same error :<br>
<small><font face="Courier New, Courier, monospace"><br>
ERROR:aaa_radius:parse_set_content: malformed modparam <br>
ERROR:aaa_radius:parse_sets_func: malformed modparam
set1 <br>
CRITICAL:core:yyerror: parse error in config file, line
258, column 18-19: Parameter <sets> not found in
module <aaa_radius> - can't set <br>
ERROR:core:main: bad config file (1 errors) </font></small><br>
<br>
Here is the definition of my custom sets :<br>
<br>
<small><font face="Courier New, Courier, monospace">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)")</font></small><br>
<small><font face="Courier New, Courier, monospace">modparam("aaa_radius",
"sets", "set2 = (User-Name=$fU)")</font></small><br>
<br>
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.<br>
Thanks.<br>
<br>
Best Regards,<br>
<br>
Sebastien<br>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>