<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hi, Yuri!</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 09.04.2023 17:27, Yury Kirsanov
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAD1_set=iJjY6u1phZ=DVxQSGu4rszzN+BFPs71xfcAcnwbVmg@mail.gmail.com">
<p
style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">Question
is - how do I put TWO hashes into this variable if I'm trying to
do a 'SHA-256,MD5' authentication, or a 'SHA-256, SHA-512-256'
or something like that?</p>
</blockquote>
<p>The "password_column" name is a bit unfortunate given there are 3
types of hashes as you already observed, but it was kept for
backwards-compatibility reasons as holder for the MD5 hash :)</p>
<p>The other two hash column module params are right below it in the
docs: <a moz-do-not-send="true"
href="https://opensips.org/docs/modules/3.4.x/auth_db.html#param_hash_column_sha256">hash_column_sha256</a>
and <a moz-do-not-send="true"
href="https://opensips.org/docs/modules/3.4.x/auth_db.html#param_hash_column_sha512t256">hash_column_sha512t256</a>!<br>
</p>
<blockquote type="cite"
cite="mid:CAD1_set=iJjY6u1phZ=DVxQSGu4rszzN+BFPs71xfcAcnwbVmg@mail.gmail.com">
<p
style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">I
tried putting these values with a comma, with a semicolon, with
a '\r\n' but all that leads to is a crash in OpenSIPS without a
segfault, like this:</p>
</blockquote>
<p>Wow! Maybe this needs to be looked into... I'm assuming you had
to manually edit the DB schema a bit for that extra-long data to
fit in, right? If so, I think a crash may be normal / expected,
since you are using OpenSIPS in a <i>customized</i>, <i>non-standard</i>
way, so you are on your own!</p>
<p>Best regards,<br>
</p>
<pre class="moz-signature" cols="72">--
Liviu Chircu
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/liviuchircu">www.twitter.com/liviuchircu</a> | <a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a>
OpenSIPS Summit 2023 Houston, May 23-26 | <a class="moz-txt-link-abbreviated" href="http://www.opensips.org/events">www.opensips.org/events</a></pre>
</body>
</html>