ldap-authn.conf 481 B

12345678910111213141516171819
  1. authentication = [
  2. {
  3. backend = ldap
  4. base_dn = "uid=${username},ou=testdevice,dc=emqx,dc=io"
  5. filter = "(& (objectClass=mqttUser) (uid=${username}))"
  6. mechanism = password_based
  7. method {
  8. is_superuser_attribute = isSuperuser
  9. password_attribute = userPassword
  10. type = hash
  11. }
  12. password = public
  13. pool_size = 8
  14. query_timeout = "5s"
  15. request_timeout = "10s"
  16. server = "localhost:1389"
  17. username = "cn=root,dc=emqx,dc=io"
  18. }
  19. ]