See mod_lib_ldap for more information.
You must install mod_lib_ldap to use this module. After that, you need only copy mod_auth_ldap2.lua to your Prosody installation’s plugins directory.
In addition to the configuration that mod_lib_ldap itself requires, this plugin also requires the following fields in the ldap section:
See the README.html distributed with mod_lib_ldap for details.
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_auth_ldap2
For earlier versions see the documentation for installing 3rd party modules