mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Add 'certauth' command to extauth port
This commit is contained in:
parent
8ac4a5f792
commit
052917961a
@ -21,10 +21,10 @@
|
|||||||
{deps, [{lager, ".*", {git, "https://github.com/erlang-lager/lager", "3.6.10"}},
|
{deps, [{lager, ".*", {git, "https://github.com/erlang-lager/lager", "3.6.10"}},
|
||||||
{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", "2887223"}},
|
{p1_utils, ".*", {git, "https://github.com/processone/p1_utils", "2887223"}},
|
||||||
{cache_tab, ".*", {git, "https://github.com/processone/cache_tab", "01e0f33"}},
|
{cache_tab, ".*", {git, "https://github.com/processone/cache_tab", "01e0f33"}},
|
||||||
{fast_tls, ".*", {git, "https://github.com/processone/fast_tls", {tag, "1.1.1"}}},
|
{fast_tls, ".*", {git, "https://github.com/processone/fast_tls", "849d622"}},
|
||||||
{stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.16"}}},
|
{stringprep, ".*", {git, "https://github.com/processone/stringprep", {tag, "1.0.16"}}},
|
||||||
{fast_xml, ".*", {git, "https://github.com/processone/fast_xml", "7fd02f3a2f"}},
|
{fast_xml, ".*", {git, "https://github.com/processone/fast_xml", "7fd02f3a2f"}},
|
||||||
{xmpp, ".*", {git, "https://github.com/processone/xmpp", "3e2f1c5"}},
|
{xmpp, ".*", {git, "https://github.com/processone/xmpp", "2551699"}},
|
||||||
{fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.19"}}},
|
{fast_yaml, ".*", {git, "https://github.com/processone/fast_yaml", {tag, "1.0.19"}}},
|
||||||
{yconf, ".*", {git, "https://github.com/processone/yconf", "4bdf771"}},
|
{yconf, ".*", {git, "https://github.com/processone/yconf", "4bdf771"}},
|
||||||
{jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}},
|
{jiffy, ".*", {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}},
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
%% API
|
%% API
|
||||||
-export([start/1, stop/1, reload/1, start_link/2]).
|
-export([start/1, stop/1, reload/1, start_link/2]).
|
||||||
-export([check_password/3, set_password/3, try_register/3, remove_user/2,
|
-export([check_password/3, set_password/3, try_register/3, remove_user/2,
|
||||||
remove_user/3, user_exists/2]).
|
remove_user/3, user_exists/2, check_certificate/3]).
|
||||||
-export([prog_name/1, pool_name/1, worker_name/2, pool_size/1]).
|
-export([prog_name/1, pool_name/1, worker_name/2, pool_size/1]).
|
||||||
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
|
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
|
||||||
terminate/2, code_change/3]).
|
terminate/2, code_change/3]).
|
||||||
@ -61,6 +61,9 @@ start_link(Name, Prog) ->
|
|||||||
check_password(User, Server, Password) ->
|
check_password(User, Server, Password) ->
|
||||||
call_port(Server, [<<"auth">>, User, Server, Password]).
|
call_port(Server, [<<"auth">>, User, Server, Password]).
|
||||||
|
|
||||||
|
check_certificate(User, Server, Certificate) ->
|
||||||
|
call_port(Server, [<<"certauth">>, User, Server, Certificate]).
|
||||||
|
|
||||||
user_exists(User, Server) ->
|
user_exists(User, Server) ->
|
||||||
call_port(Server, [<<"isuser">>, User, Server]).
|
call_port(Server, [<<"isuser">>, User, Server]).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user