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> <<a href="mailto:joao.pereira@fccn.pt">joao.pereira@fccn.pt</a>> 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("registrar|auth_db|group|db_url|speeddial", "use_domain", 0)<br><br>But it used to work with this config.... should I put use_domain -> 1 ?<br>Thanks a lot<br>Regards
<br>Joao Pereira<br><br><br><br><br>Bogdan-Andrei Iancu wrote:<br>> Hi,<br>><br>> do you have or not enabled the "use_domain" module parameter for the<br>> auth_db module?<br>><br>> regards,<br>
> bogdan<br>><br>> Joao Pereira wrote:<br>>> Hello<br>>> even this way it doesnt work:<br>>><br>>> # Registo<br>>> if (!www_authorize("", "subscriber")) {
<br>>> www_challenge("", "0");<br>>> break;<br>>> };<br>>><br>>> Why isnt OpenSER accepting my clients? They are all registered in<br>>> the database.
<br>>><br>>> Regards<br>>> Joao Pereira<br>>><br>>><br>>> Sergio Gutierrez wrote:<br>>>> Hi Joao.<br>>>><br>>>> Why do not you try by letting the domain string empty?
<br>>>> In that case, the server will build the request for credentials<br>>>> according to the request itself.<br>>>><br>>>> Kind regards.<br>>>><br>>>> Sergio Gutiérrez.
<br>>>><br>>>> On 3/29/07, *Joao Pereira* <<a href="mailto:joao.pereira@fccn.pt">joao.pereira@fccn.pt</a><br>>>> <mailto:<a href="mailto:joao.pereira@fccn.pt">joao.pereira@fccn.pt</a>>> wrote:
<br>>>><br>>>> Hello<br>>>> I already have an OpenSER runnig nicely.<br>>>> Now I installed a second OpenSER (with other a newdomain) with the<br>>>> same<br>>>> database configuration and the same
ser.cfg (except the IP).<br>>>> Everyting works fine... except the authentication... OpenSER always<br>>>> answers 401 Unauthorized.<br>>>><br>>>> It only accepts clients when I comment this part:
<br>>>><br>>>> if (!www_authorize("<a href="http://newdomain.com">newdomain.com</a> <<a href="http://newdomain.com">http://newdomain.com</a>>",<br>>>> "subscriber")) {
<br>>>> www_challenge("
<a href="http://newdomain.com">newdomain.com</a> <<a href="http://newdomain.com">http://newdomain.com</a>>",<br>>>> "0");<br>>>> break;<br>>>> };<br>
>>><br>>>><br>>>> The users exist in the database and I know the username / password.<br>>>> Whats happening?<br>>>> Thanks<br>>>> regards<br>>>> Joao Pereira
<br>>>><br>>>><br>>>> _______________________________________________<br>>>> Users mailing list<br>>>> <a href="mailto:Users@openser.org">Users@openser.org</a> <mailto:
<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>>>><br>>>>
<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>>><br>><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>