From 2b19f12e25b9cbce2b1ddf00f795c06f24cbfe55 Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Thu, 28 May 2015 01:27:22 +0800 Subject: [PATCH] ldap --- rel/files/emqttd.config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rel/files/emqttd.config b/rel/files/emqttd.config index aa63385a5..97cdc9a18 100644 --- a/rel/files/emqttd.config +++ b/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, []} ]},