[OpenSIPS-Users] OpenSIPS CP 9.3.2 password mode ha1_sha256 for adding new user

jacky z zjack0992 at gmail.com
Thu Sep 15 04:18:50 UTC 2022


Hi Team,

Does ha1_sha256 work in general opensips config settings? I have the
following in the scripts:

modparam("auth_db", "calculate_ha1", 0)

modparam("auth_db", "password_column", "ha1_sha256")


but got the following error in the log:


/usr/sbin/opensips[28261]: ERROR:auth:auth_calc_HA1: Incorrect length of
pre-hashed credentials for the algorithm "MD5": 32 expected, 64 provided


It seems though the sha256 was specified, but the server still calculated
MD5 and compared with the database column ha1_sha256.

On Tue, Aug 9, 2022 at 5:39 PM Bogdan-Andrei Iancu <bogdan at opensips.org>
wrote:

> Hi Bela,
>
> The OCP does not support ha1_sha256 AFAIK. Consider opening a feature
> request here https://github.com/OpenSIPS/opensips-cp/issues
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS Summit 27-30 Sept 2022, Athens
>   https://www.opensips.org/events/Summit-2022Athens/
>
> On 6/29/22 9:10 AM, Bela H wrote:
>
> Hi all,
>
>
>
> Is there any way to add new subscriber from OpenSIPS CP 9.3.2 using
> password mode ha1_sha256?
>
> The ha1 (MD5(username:realm:password)) works fine but I had no luck with
> the value generation for the ha1_sha256 field in “subscriber” table.
>
>
>
> I have this setting:
>
> modparam("auth_db", "calculate_ha1", 0)
>
> modparam("auth_db", "password_column", "ha1_sha256")
>
>
>
> Thanks!
>
> Bela
>
>
>
>
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220915/a0d5bbf1/attachment.html>


More information about the Users mailing list