[OpenSIPS-Users] www_challenge qop type failed with AAA

Donat Zenichev donat.zenichev at gmail.com
Wed Jan 20 07:14:56 EST 2021


Good day Michael,
I just noticed you are using quotation marks when you pass the second
parameter to the function www_challenge().

Reading the manual on auth.so:
https://opensips.org/html/docs/modules/3.0.x/auth.html#func_www_challenge

I see that it should be passed without any preceding and following symbols,
so clear 0 or 1, see example from module's wiki:
www_challenge("siphub.net", 1);

On Tue, Jan 5, 2021 at 8:35 PM Michael Vale via Users <
users at lists.opensips.org> wrote:

> The script wouldn’t load if I specified a auth-int as well as auth.  I
> removed auth-int entirely and the script runs.
>
> > On 6 Jan 2021, at 5:26 am, Vlad Patrascu <vladp at opensips.org> wrote:
> >
> > Hi Michael,
> >
> > Regarding the qop issue, you should pass for that parameter a string
> value of "auth", "auth-int", or both separated by ','.
> >
> > Regards,
> >
> > --
> > Vlad Patrascu
> > OpenSIPS Developer
> > http://www.opensips-solutions.com
> >
> > On 05.01.2021 19:50, Michael Vale via Users wrote:
> >> Hi,
> >>
> >> I’m attempting to do auth with AAA,
> >>
> >> I was met with an error of no Cisco vendor and no SIP-URI-Host
> Attribute which I added to the dictionaries.
> >>
> >> Now www_challenge thinks either “0” or “1” is an invalid qop type.
>
> >>
> >>
>        ERROR:auth:fixup_qop: Bad qop type
> >> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]: ERROR:core:fix_cmd:
> Fixup failed for param [2]
> >> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]:
> ERROR:core:fix_actions: Failed to fix command <www_challenge>
> >> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]:
> ERROR:core:fix_actions: fixing failed (code=-1) at
> /etc/opensips/opensips.cfg:216
> >> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]: ERROR:core:main:
> failed to fix configuration with err code -1
> >> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]: INFO:core:cleanup:
> cleanup
> >> Jan 06 04:42:14 unispy /usr/sbin/opensips[29711]: NOTICE:core:main:
> Exiting....
> >> Jan 06 04:42:14 unispy opensips[29709]: INFO:core:daemonize: pre-daemon
> proce
> >>
> >>      if (!aaa_www_authorize("")) {
> >>             www_challenge("", "1");
> >>          };
> >>
> >>
> >> Could someone please shed some light on the subject?
> >>
> >> Also it would be nice if there was another approach to handling the
> SIP-URI-Host and Cisco issue or at least some confirmation that my approach
> was the best way to deal with it.
> >>
> >>
> >> Regards,
> >>
> >> Michael.
> >> _______________________________________________
> >> Users mailing list
> >> Users at lists.opensips.org
> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 

Best regards,
Donat Zenichev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210120/69920927/attachment-0001.html>


More information about the Users mailing list