[Users] users authentication

Joao Pereira joao.pereira at fccn.pt
Fri Mar 30 10:59:24 CEST 2007


Hello
even this way it doesnt work:

        # Registo
       if (!www_authorize("", "subscriber")) {
         www_challenge("", "0");
         break;
       };

   Why isnt OpenSER accepting my clients?  They are all registered in 
the database.

Regards
Joao Pereira


Sergio Gutierrez wrote:
> Hi Joao.
>
> Why do not you try by letting the domain string empty?
> In that case, the server will build the request for credentials 
> according to the request itself.
>
> Kind regards.
>
> Sergio Gutiérrez.
>
> On 3/29/07, *Joao Pereira* <joao.pereira at fccn.pt 
> <mailto:joao.pereira at fccn.pt>> wrote:
>
>     Hello
>     I already have an OpenSER runnig nicely.
>     Now I installed a second OpenSER (with other a newdomain) with the
>     same
>     database configuration and the same ser.cfg (except the IP).
>     Everyting works fine... except the authentication... OpenSER always
>     answers 401 Unauthorized.
>
>     It only accepts clients when I comment this part:
>
>         if (!www_authorize("newdomain.com <http://newdomain.com>",
>     "subscriber")) {
>              www_challenge(" newdomain.com <http://newdomain.com>", "0");
>              break;
>           };
>
>
>     The users exist in the database and I know the username / password.
>     Whats happening?
>     Thanks
>     regards
>     Joao Pereira
>
>
>     _______________________________________________
>     Users mailing list
>     Users at openser.org <mailto:Users at openser.org>
>     http://openser.org/cgi-bin/mailman/listinfo/users
>
>




More information about the sr-users mailing list