Hi Joao.<br>
<br>
Could you check the log of openser with a higher debug level, to lool for possible error messages at authorization time?<br>
<br>
Besides, if you are authorizing against mysql, could you double check
the log of MySQL to see how the query is being sent to database?<br>
<br>
Regards.<br>
<br>
Sergio G.<br><br><div><span class="gmail_quote">On 3/30/07, <b class="gmail_sendername">Joao Pereira</b> &lt;<a href="mailto:joao.pereira@fccn.pt">joao.pereira@fccn.pt</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello<br>I have:<br><br>modparam(&quot;registrar|auth_db|group|db_url|speeddial&quot;, &quot;use_domain&quot;, 0)<br><br>But it used to work with this config.... should I put use_domain -&gt; 1 ?<br>Thanks a lot<br>Regards
<br>Joao Pereira<br><br><br><br><br>Bogdan-Andrei Iancu wrote:<br>&gt; Hi,<br>&gt;<br>&gt; do you have or not enabled the &quot;use_domain&quot; module parameter for the<br>&gt; auth_db module?<br>&gt;<br>&gt; regards,<br>
&gt; bogdan<br>&gt;<br>&gt; Joao Pereira wrote:<br>&gt;&gt; Hello<br>&gt;&gt; even this way it doesnt work:<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# Registo<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!www_authorize(&quot;&quot;, &quot;subscriber&quot;)) {
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; www_challenge(&quot;&quot;, &quot;0&quot;);<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp; Why isnt OpenSER accepting my clients?&nbsp;&nbsp;They are all registered in<br>&gt;&gt; the database.
<br>&gt;&gt;<br>&gt;&gt; Regards<br>&gt;&gt; Joao Pereira<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; Sergio Gutierrez wrote:<br>&gt;&gt;&gt; Hi Joao.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Why do not you try by letting the domain string empty?
<br>&gt;&gt;&gt; In that case, the server will build the request for credentials<br>&gt;&gt;&gt; according to the request itself.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Kind regards.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Sergio Gutiérrez.
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On 3/29/07, *Joao Pereira* &lt;<a href="mailto:joao.pereira@fccn.pt">joao.pereira@fccn.pt</a><br>&gt;&gt;&gt; &lt;mailto:<a href="mailto:joao.pereira@fccn.pt">joao.pereira@fccn.pt</a>&gt;&gt; wrote:
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hello<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; I already have an OpenSER runnig nicely.<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Now I installed a second OpenSER (with other a newdomain) with the<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; same<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; database configuration and the same 
ser.cfg (except the IP).<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Everyting works fine... except the authentication... OpenSER always<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; answers 401 Unauthorized.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; It only accepts clients when I comment this part:
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!www_authorize(&quot;<a href="http://newdomain.com">newdomain.com</a> &lt;<a href="http://newdomain.com">http://newdomain.com</a>&gt;&quot;,<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &quot;subscriber&quot;)) {
<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;www_challenge(&quot;
<a href="http://newdomain.com">newdomain.com</a> &lt;<a href="http://newdomain.com">http://newdomain.com</a>&gt;&quot;,<br>&gt;&gt;&gt; &quot;0&quot;);<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>
&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; The users exist in the database and I know the username / password.<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Whats happening?<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Thanks<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; regards<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Joao Pereira
<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; _______________________________________________<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; Users mailing list<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:Users@openser.org">Users@openser.org</a> &lt;mailto:
<a href="mailto:Users@openser.org">Users@openser.org</a>&gt;<br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt;
<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Users mailing list<br>&gt;&gt; <a href="mailto:Users@openser.org">Users@openser.org</a><br>&gt;&gt; <a href="http://openser.org/cgi-bin/mailman/listinfo/users">
http://openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt;&gt;<br>&gt;<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openser.org">Users@openser.org</a><br><a href="http://openser.org/cgi-bin/mailman/listinfo/users">
http://openser.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></div><br>