Hi, Nabeel!

You should set the 'calculate_ha1' to 0 (it is already computed in the ha1 column) and set the password_column to 'ha1'.

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

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 09/14/2015 12:00 PM, Nabeel wrote:

Hi razvan,

By default, the opensips script from menuconfig already has 'calculate_ha1' set to 'yes' (and 'password_column' set to 'password'). Do you mean set 'calculate_ha1' to '0'? Then should the 'password_column' remain 'password', or should it point to the 'ha1' column? If the column remains 'password', should this column contain the encoded ha1 password?

Please clarify.

On 14 Sep 2015 08:04, "Răzvan Crainea" <[email protected] <mailto:[email protected]>> wrote:

    Hi, Nabeel!

    By default, OpenSIPS uses the password column to authenticate
    users. If you want to use HA1 authentication, you should set the
    calculate_ha1 parameter[1].

    [1] http://www.opensips.org/html/docs/modules/2.1.x/auth_db#id293468

    Best regards,

    Răzvan Crainea
    OpenSIPS Solutions
    www.opensips-solutions.com <http://www.opensips-solutions.com>

    On 09/13/2015 10:25 AM, Nabeel wrote:

    Just tested this and I'm not able to register without having the
    plain text password present in the 'password' column in db.  How
    can I make OpenSIPS register using only the ha1 hashed value? I
    tried commenting out and changing the 'password_column' attribute
    in config but it didn't work.

    On 12 Sep 2015 12:40, "Nabeel" <[email protected]
    <mailto:[email protected]>> wrote:

        Hi,

        My SIP client only uses the 'ha1' password field from
        database to authenticate users and ignores the 'password'
        field totally.  Will OpenSIPS allow such authentication to
        complete and register the user by using only the ha1 hashed
        password?



    _______________________________________________
    Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users


    _______________________________________________
    Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to