]> granicus.if.org Git - ejabberd/commitdiff
Provide command for ODBC's convert_to_scram
authorBadlop <badlop@process-one.net>
Thu, 23 Jul 2015 11:16:15 +0000 (13:16 +0200)
committerBadlop <badlop@process-one.net>
Thu, 23 Jul 2015 11:16:15 +0000 (13:16 +0200)
src/ejabberd_admin.erl

index 89421d996226143b4e3a7a24bd13c38f3e8651c6..a0b32304fc875f5bad415c33bb8333aa41756e93 100644 (file)
@@ -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",