<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That's it! Thank you very much Thomas. I was realy missing a tiny
point. Now my script is becoming nice!<br>
<br>
Regards, Ricardo.<br>
<br>
<br>
Thomas Gelf escreveu:
<blockquote cite="mid:h0ioo3$1q4$1@ger.gmane.org" type="cite">
<pre wrap="">I'm not sure what you're missing - it's pretty straight-forward. All
you need to do should be something like:
modparam("uac", "auth_username_avp", "$avp(i:1)")
modparam("uac", "auth_password_avp", "$avp(i:2)")
modparam("uac", "auth_realm_avp", "$avp(i:3)")
avp_db_query("SELECT user, pass, realm FROM whatever WHERE <some-voodoo>
AND owner = '$avp(s:caller)'", "$avp(i:1);$avp(i:2);$avp(i:3)");
(and of course uac_replace_from, rewrite_host_port, t_on_failure,
uac_auth - as without AVPs)
Cheers,
Thomas Gelf
Ricardo Martins schrieb:
</pre>
<blockquote type="cite">
<pre wrap="">Yes Bogdan, that's ok, I'm going to store the credential on AVPs. But
the question is: How can I inform the script wich user of the realm to
use on uac_auth function?
My goal is to use uac_auth to autenticate multiples users of the same realm.
If you can give me some clues, I would be gratefull.
Regards!
Ricardo.
Bogdan-Andrei Iancu escreveu:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Ricardo,
But I implemented this long time ago. See:
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.5.x/uac.html#auth-username-avp-id">http://www.opensips.org/html/docs/modules/1.5.x/uac.html#auth-username-avp-id</a>
Also see :
<a class="moz-txt-link-freetext" href="http://opensips.svn.sourceforge.net/viewvc/opensips?view=rev&revision=707">http://opensips.svn.sourceforge.net/viewvc/opensips?view=rev&revision=707</a>
Is it something else you are looking after ?
Regards,
Bogdan
Ricardo Martins wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all!
I'm trying to use the uac_auth function to autenticate more than one
user for a single realm. Is there any way to do that? In my
environment, it acceps the parameters but I have no way to inform
wich one to use when the 407 response comes.
I found a very old bounty (linked below) to put credentials
parameters of uac module on avp and to include the ability to
authenticate multiple users on a single realm.
<a class="moz-txt-link-freetext" href="http://lists.kamailio.org/pipermail/devel/2006-January/001758.html">http://lists.kamailio.org/pipermail/devel/2006-January/001758.html</a>
Do anybody knows if any similar thing was done?
Regards!
Ricardo.
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>