Discussion:
[ejabberd] ejabberd mysql and password
Thomas Camaran
2018-08-09 14:11:55 UTC
Permalink
Hi,

i have ejabberd running with mysql database, how i can encrypt all password
in db?
--
------------------------------
Thomas Camaran
------------------------------
Information in this email including any attachments may be privileged,
confidential and is intended exclusively for the addressee. The views
expressed may not be official policy, but the personal views of the
originator. If you have received it in error, please notify the sender by
return email and delete it from your system. You should not reproduce,
distribute, store, retransmit, use or disclose its contents to anyone.
Badlop
2018-08-10 09:51:25 UTC
Permalink
Hi

By default passwords are stored plaintext. You can configure ejabberd
with this option, and then it will store the passwords of new accounts
in SCRAM format:
auth_password_format: scram

See https://docs.ejabberd.im/admin/configuration/#internal

Also, you probably want the passwords of the existing accounts to be
converted from plaintext to SCRAM.
For that, run this command:
ejabberdctl convert_to_scram example.org

See https://docs.ejabberd.im/admin/configuration/#sql-authentication

PD: All this works when using mysql backend, like you do, even if the
documentation is not clear about this.

--
Badlop
ProcessOne
Hi,
i have ejabberd running with mysql database, how i can encrypt all password in db?
--
________________________________
Thomas Camaran
________________________________
Information in this email including any attachments may be privileged, confidential and is intended exclusively for the addressee. The views expressed may not be official policy, but the personal views of the originator. If you have received it in error, please notify the sender by return email and delete it from your system. You should not reproduce, distribute, store, retransmit, use or disclose its contents to anyone.
_______________________________________________
ejabberd mailing list
http://lists.jabber.ru/mailman/listinfo/ejabberd
Loading...