Merge branch 'master' of github.com:emqtt/emqtt
This commit is contained in:
commit
391dacee19
|
@ -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".
|
||||||
|
|
Loading…
Reference in New Issue