Feng Lee 10 سال پیش
والد
کامیت
2b19f12e25
1فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 14 0
      rel/files/emqttd.config

+ 14 - 0
rel/files/emqttd.config

@@ -45,8 +45,22 @@
         {auth, [
             %% Authentication with username, password
             %{username, []},
+            
             %% Authentication with clientid
             %{clientid, [{password, no}, {file, "etc/clients.config"}]},
+
+            %% Authentication with LDAP
+            % {ldap, [
+            %    {servers, ["localhost"]},
+            %    {port, 389},
+            %    {timeout, 30},
+            %    {user_dn, "uid=$u,ou=People,dc=example,dc=com"},
+            %    {ssl, fasle},
+            %    {sslopts, [
+            %        {"certfile", "ssl.crt"},
+            %        {"keyfile", "ssl.key"}]}
+            % ]},
+
             %% Allow all
             {anonymous, []}
         ]},