From 19aad464da3079af02b891ea7c4abd164526c51c Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 23 Jul 2015 13:16:15 +0200 Subject: [PATCH] Provide command for ODBC's convert_to_scram --- src/ejabberd_admin.erl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ejabberd_admin.erl b/src/ejabberd_admin.erl index 89421d996..a0b32304f 100644 --- a/src/ejabberd_admin.erl +++ b/src/ejabberd_admin.erl @@ -167,6 +167,10 @@ commands() -> desc = "Export all tables as SQL queries to a file", module = ejd2odbc, function = export, args = [{host, string}, {file, string}], result = {res, rescode}}, + #ejabberd_commands{name = convert_to_scram, tags = [odbc], + desc = "Convert the passwords in 'users' ODBC table to SCRAM", + module = ejabberd_auth_odbc, function = convert_to_scram, + args = [{host, binary}], result = {res, rescode}}, #ejabberd_commands{name = convert_to_yaml, tags = [config], desc = "Convert the input file from Erlang to YAML format",