<div>But what do I have to add? I can add a user, with username Asterisk, but how can I associate that user to&nbsp;the INVITE message from Asterisk to the SER? Don't understand how SER can authenticate if i cannot associate the RADIUS/LDAP user to the Asterisk box.
</div>
<div>&nbsp;</div>
<div>Jose Simoes<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 11/25/05, <b class="gmail_sendername">Arek Bekiersz</b> &lt;<a href="mailto:sip@perceval.net">sip@perceval.net</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Sure, in this case you need to add user into Radius/LDAP backend and<br>proceed as normally.<br><br>AFAIK there is no &quot;third&quot; solution here, except for &quot;trusted&quot; table.
<br><br>--<br>Arek<br><br><br>Voipers Portugal wrote:<br>&gt; Ok. That's the easy solution. However, that ain't protected againts IP<br>&gt; spoofing problems. Isn't there a way to authenticate using users (with<br>&gt; username and password)? So that, when Asterisk send an INVITE do SER,
<br>&gt; Asterisk should be a normal SER user, like any other user. I am using<br>&gt; the following code to see if the invite is trusted or not:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(1, &quot;INVITE not in table trusted\n&quot;);
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!radius_www_authorize(&quot;ser host&quot;)) {<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(1, &quot;INVITE not authorized, generating<br>&gt; digest\n&quot;);<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; www_challenge(&quot;ser host&quot;, &quot;0&quot;);
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(1, &quot;INVITE authorized\n&quot;);<br>&gt;<br>&gt; And this way, I think only the users that are in my LDAP database<br>&gt; (contacted via radius) and registred to my ser host can make the calls.
<br>&gt; Am I correct?<br><br>_______________________________________________<br>Serusers mailing list<br><a href="mailto:serusers@lists.iptel.org">Serusers@iptel.org</a><br><a href="http://lists.iptel.org/mailman/listinfo/serusers">
http://lists.iptel.org/mailman/listinfo/serusers</a><br></blockquote></div><br>