portmanager: Explicitly import some libraries
[prosody.git] / prosody.cfg.lua.dist
index d1bd7d67ae91027b104b05237a2607dda85ff8c8..db85a70b3dfb3cf2e28bf5355f27ab47c84f430d 100644 (file)
@@ -45,7 +45,6 @@ modules_enabled = {
                --"compression"; -- Stream compression
 
        -- Nice to have
-               "legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
                "version"; -- Replies to server version requests
                "uptime"; -- Report how long server has been running
                "time"; -- Let others know the time here on this server
@@ -67,6 +66,7 @@ modules_enabled = {
                --"welcome"; -- Welcome users who register accounts
                --"watchregistrations"; -- Alert admins of registrations
                --"motd"; -- Send a message to users when they log in
+               --"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
 };
 
 -- These modules are auto-loaded, should you
@@ -99,6 +99,15 @@ ssl = {
 --c2s_require_encryption = false
 --s2s_require_encryption = false
 
+-- Select the authentication backend to use. The 'internal' providers
+-- use Prosody's configured data storage to store the authentication data.
+-- To allow Prosody to offer secure authentication mechanisms to clients, the
+-- default provider stores passwords in plaintext. If you do not trust your
+-- server please see http://prosody.im/doc/modules/mod_auth_internal_hashed
+-- for information about using the hashed backend.
+
+authentication = "internal_plain"
+
 -- Select the storage backend to use. By default Prosody uses flat files
 -- in its configured data directory, but it also supports more backends
 -- through modules. An "sql" backend is included by default, but requires