<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-forward-container"><br>
      <br>
      -------- Original Message --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
            </th>
            <td>Re: [SR-Users] Registration Authentication Error</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
            <td>Fri, 21 Sep 2012 15:31:20 -0500</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
            <td>Nathaniel L Keeling III <a class="moz-txt-link-rfc2396E" href="mailto:keeling@akan-tech.com">&lt;keeling@akan-tech.com&gt;</a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">CC: </th>
            <td>SIP Router - Kamailio (OpenSER) and SIP Express Router
              (SER) - Users Mailing List
              <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org">&lt;sr-users@lists.sip-router.org&gt;</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>I added a test account and I am still getting the same error. It seems 
like I am missing something somewhere. Here is the table entry for the 
test account:

 3 | test      | akanvoice.com | test1234 |               | 
b6c6087ad9e897d2e871169e0eac9398 | 8cee4856976732a5cfce7c23a19bfe59 |

Thanks

Nathaniel

On 9/21/12 8:15 AM, Daniel-Constantin Mierla wrote:
&gt; Hello,
&gt;
&gt; On 9/21/12 2:43 PM, Nathaniel L Keeling III wrote:
&gt;&gt; Yes, the password column of the subscriber's table contains the plain 
&gt;&gt; text password. Should the calculated HA1 string match the HA1 value 
&gt;&gt; in the database?
&gt; no, if clear text password is used, the ha1 column is not important at 
&gt; all.
&gt;
&gt; If you work with default config, it's really strange, I tested and all 
&gt; goes fine. Can you add a temporary account with a simple 
&gt; username/password to be sure no typo can happen and test again?
&gt;
&gt; Cheers,
&gt; Daniel
&gt;
&gt;&gt;
&gt;&gt; Thanks
&gt;&gt;
&gt;&gt; Nathaniel
&gt;&gt;
&gt;&gt; On 9/21/12 2:21 AM, Daniel-Constantin Mierla wrote:
&gt;&gt;&gt; Hello,
&gt;&gt;&gt;
&gt;&gt;&gt; this requires the plain text password to be in the column 'password' 
&gt;&gt;&gt; of the subscriber table, do you have it? I am asking because many 
&gt;&gt;&gt; people keep only ha1/ha1b.
&gt;&gt;&gt;
&gt;&gt;&gt; Cheers,
&gt;&gt;&gt; Daniel
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; On 9/21/12 2:35 AM, Nathaniel L Keeling III wrote:
&gt;&gt;&gt;&gt; Here is the parameters for auth_db:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; modparam("auth_db", "db_url", DBURL)
&gt;&gt;&gt;&gt; modparam("auth_db", "calculate_ha1", yes)
&gt;&gt;&gt;&gt; modparam("auth_db", "password_column", "password")
&gt;&gt;&gt;&gt; modparam("auth_db", "load_credentials", "")
&gt;&gt;&gt;&gt; modparam("auth_db", "use_domain", MULTIDOMAIN)
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; This is the default config file with just setting the DBURL, IP 
&gt;&gt;&gt;&gt; address, port and the defines.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Thanks
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Nathaniel
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On 9/19/12 1:45 AM, Daniel-Constantin Mierla wrote:
&gt;&gt;&gt;&gt;&gt; Hello,
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; can you paste the module parameters for auth and auth_db module? 
&gt;&gt;&gt;&gt;&gt; Or check the combination of password column and calculate_ha1 are ok.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I guess you are using your custom configuration file, maybe you 
&gt;&gt;&gt;&gt;&gt; can give a quick test with default configuration just to see if 
&gt;&gt;&gt;&gt;&gt; the passwords match.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Cheers,
&gt;&gt;&gt;&gt;&gt; Daniel
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; On 9/18/12 4:58 PM, Nathaniel L Keeling III wrote:
&gt;&gt;&gt;&gt;&gt;&gt; Hello,
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; we are testing the new version of Kamailio, 3.3 and are getting 
&gt;&gt;&gt;&gt;&gt;&gt; authentication error when trying to register a sip account. We 
&gt;&gt;&gt;&gt;&gt;&gt; have a db backend in which we used kamctl to add the user to the 
&gt;&gt;&gt;&gt;&gt;&gt; db. We are using the kamailio.cfg script created during the 
&gt;&gt;&gt;&gt;&gt;&gt; install with changes for our environment. Is there some other 
&gt;&gt;&gt;&gt;&gt;&gt; changes required besides the normal. I can see in the logs where 
&gt;&gt;&gt;&gt;&gt;&gt; everything looks ok except for when it compares the calculated 
&gt;&gt;&gt;&gt;&gt;&gt; values. I have doubled check the subscriber table and password 
&gt;&gt;&gt;&gt;&gt;&gt; but to no avail.
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; 11(28548) DEBUG: db_postgres [km_dbase.c:393]: PQclear(1008b8560) 
&gt;&gt;&gt;&gt;&gt;&gt; result set
&gt;&gt;&gt;&gt;&gt;&gt; 11(28548) DEBUG: auth_db [authorize.c:124]: HA1 string 
&gt;&gt;&gt;&gt;&gt;&gt; calculated: e13d569284e76a33ca63e4d6203f844a
&gt;&gt;&gt;&gt;&gt;&gt; 11(28548) DEBUG: auth [api.c:211]: check_response: Our result = 
&gt;&gt;&gt;&gt;&gt;&gt; '18210b5da2b3d27e6ba50977072599ea'
&gt;&gt;&gt;&gt;&gt;&gt; 11(28548) DEBUG: auth [api.c:221]: check_response: Authorization 
&gt;&gt;&gt;&gt;&gt;&gt; failed
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Thanks
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; Nathaniel
&gt;&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt;&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users 
&gt;&gt;&gt;&gt;&gt;&gt; mailing list
&gt;&gt;&gt;&gt;&gt;&gt; <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
&gt;&gt;&gt;&gt;&gt;&gt; <a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; _______________________________________________
&gt;&gt;&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
&gt;&gt;&gt;&gt; list
&gt;&gt;&gt;&gt; <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
&gt;&gt;&gt;&gt; <a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
&gt;&gt;&gt;
&gt;&gt;
&gt;

</pre>
      <br>
      <br>
    </div>
    <br>
  </body>
</html>