OpenSIPS / opensips-cli

OpenSIPS CLI tool - an interactive command line tool that can be used to control and monitor OpenSIPS servers.
GNU General Public License v3.0
84 stars 46 forks source link

Empty password value when creating users #97

Closed babakyakhchali closed 2 years ago

babakyakhchali commented 2 years ago

Hi Trying to create a user like this: opensips-cli -x user add 1000@example.com 123456 user is created successfully but registration fails, after checking subscribers table I see password column is empty. I set it using sql and everything works opensips-cli version: 0.1~20220516~2dff522-1

liviuchircu commented 2 years ago

Hi, please check your plain_text_passwords setting, which is by default set to False. Most likely, the opensips-cli is populating the hash fields of your subscriber table, leaving the "password" column empty.

While this is the preferred, secure way of running a production installation of OpenSIPS, for testing purposes it is fine to enable plain_text_passwords and store anything you want in that table :)