Follow this guide to use LDAP for external authentication of users. When a user logs in to the Mastodon instance, their username and password will be verified by authenticating (binding) to an LDAP server. If a user exists in the LDAP directory and logs in to the Mastodon instance for the first time, a user account will be auto-created on the Mastodon instance for them.
First, install the gem(s) required for LDAP support, by running bundle install
with the LDAP_ENABLED
environment variable set to true
:
LDAP_ENABLED=true bundle install