Merge branch 'master' of github.com:emqtt/emqtt

This commit is contained in:
Feng Lee 2015-06-01 16:42:21 +08:00
commit 391dacee19
1 changed files with 1 additions and 4 deletions

View File

@ -82,10 +82,7 @@ ldap_bind(LDAP, UserDn, Password) ->
end. end.
fill(Username, UserDn) -> fill(Username, UserDn) ->
lists:append(lists:map( re:replace(UserDn, "\\$u", Username, [global, {return, list}]).
fun("$u") -> Username;
(S) -> S
end, string:tokens(UserDn, ",="))).
description() -> description() ->
"LDAP Authentication Module". "LDAP Authentication Module".