<div dir="auto">Hi Liviu,<div dir="auto">I'm actually NOT using any type of DB, hence the problem, how do I specify multiple hashes with $var(password) for different auth types, as per the documentation? And yes, I'm not using auth_db module at all when it crashes, probably something to look into, if possible, should I create a ticket? Thanks!</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Yury.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 10 Apr 2023, 20:33 Liviu Chircu, <<a href="mailto:liviu@opensips.org">liviu@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>Hi, Yuri!</div>
<div><br>
</div>
<div>On 09.04.2023 17:27, Yury Kirsanov
wrote:<br>
</div>
<blockquote type="cite">
<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 href="https://opensips.org/docs/modules/3.4.x/auth_db.html#param_hash_column_sha256" target="_blank" rel="noreferrer">hash_column_sha256</a>
and <a href="https://opensips.org/docs/modules/3.4.x/auth_db.html#param_hash_column_sha512t256" target="_blank" rel="noreferrer">hash_column_sha512t256</a>!<br>
</p>
<blockquote type="cite">
<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 cols="72">--
Liviu Chircu
<a href="http://www.twitter.com/liviuchircu" target="_blank" rel="noreferrer">www.twitter.com/liviuchircu</a> | <a href="http://www.opensips-solutions.com" target="_blank" rel="noreferrer">www.opensips-solutions.com</a>
OpenSIPS Summit 2023 Houston, May 23-26 | <a href="http://www.opensips.org/events" target="_blank" rel="noreferrer">www.opensips.org/events</a></pre>
</div>
</blockquote></div>