|
|
@@ -1,3 +1,4 @@
|
|
|
+<<<<<<< HEAD
|
|
|
%%%-----------------------------------------------------------------------------
|
|
|
%%% Copyright (c) 2012-2015 eMQTT.IO, All Rights Reserved.
|
|
|
%%%
|
|
|
@@ -56,3 +57,25 @@ stop(_State) ->
|
|
|
init([]) ->
|
|
|
{ok, { {one_for_one, 5, 10}, []} }.
|
|
|
|
|
|
+=======
|
|
|
+-module(emqttd_auth_ldap_app).
|
|
|
+
|
|
|
+-behaviour(application).
|
|
|
+
|
|
|
+%% Application callbacks
|
|
|
+-export([start/2, stop/1]).
|
|
|
+
|
|
|
+%% ===================================================================
|
|
|
+%% Application callbacks
|
|
|
+%% ===================================================================
|
|
|
+
|
|
|
+start(_StartType, _StartArgs) ->
|
|
|
+ {ok, Sup} = emqttd_auth_ldap_sup:start_link(),
|
|
|
+ Env = application:get_all_env(),
|
|
|
+ emqttd_access_control:register_mod(auth, emqttd_auth_ldap, Env),
|
|
|
+ {ok, Sup}.
|
|
|
+
|
|
|
+stop(_State) ->
|
|
|
+ emqttd_access_control:unregister_mod(auth, emqttd_auth_ldap),
|
|
|
+ ok.
|
|
|
+>>>>>>> c6e92388798302ae3b44286f444505d1c385aba7
|