website/integrations/media/emby/index.md
Emby is a media management and streaming platform for movies, TV shows, and music that allows you to organize and stream your personal media collection.
:::info An Emby Premiere subscription is required for LDAP authentication to work via the official plugin. :::
The following placeholders are used in this guide:
emby.company is the FQDN of your Emby installation.authentik.company is the FQDN of your authentik installation.ldap.company is the FQDN of your LDAP outpost.dc=company,dc=com is the Base DN of your LDAP provider.ldap_service_account is the name of the Service Account used for LDAP binding.emby_users is the name of the authentik group containing users who should have access to Emby.:::info This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application. :::
Log in to authentik as an administrator and open the authentik Admin interface.
Navigate to Applications > Applications and click Create with Provider to create an application and provider pair. (Alternatively you can first create a provider separately, then create the application and connect it with the provider.)
Click Submit to save the new application and provider.
Emby requires an LDAP outpost to authenticate users. Follow the LDAP outpost documentation to create and configure an LDAP outpost for your environment.
Create a dedicated service account for Emby LDAP authentication by following the "Creating a service account" documentation. Once created, generate and copy the token for use in the Emby configuration. Create a dedicated service account for Emby LDAP authentication by following the instructions in "Creating a service account" documentation. After the service account is created, generate and copy the token from the account; the token is required for the Emby configuration.
emby_users and click Create.emby_users group and click Add existing user to assign users who should have access to Emby by navigating to the Users tab.Access your Emby server and log in using the administrator account or the currently configured local administrator credentials.
Click the cog icon (settings) located at the top right corner of the screen to access the dashboard settings.
Navigate to the Plugins section and click Catalog at the top of the page.
Find and install the "LDAP Authentication" plugin. Restart Emby if prompted to complete the installation.
After installation, return to the plugins section and click on the "LDAP Authentication" plugin to open its settings.
Configure the LDAP Settings as follows:
ldap.company636cn=ldap_service_account,ou=users,dc=company,dc=comdc=company,dc=com. You can also specify an Organizational Unit (OU) if you organize your users into different OUs and want to query only a specific one, for example: ou=employees,dc=company,dc=com(&(objectClass=user)(cn={0})) permits all users to log in.(&(objectClass=user)(memberOf=cn=emby_users,ou=groups,dc=company,dc=com)(cn={0})) restricts access to members of the specified group.Click Save to apply your configuration.
Log out of Emby and attempt to log back in using your LDAP credentials from authentik. Logging in with an email address isn't supported, therefore use your username.
If you encounter login issues, verify your LDAP search filter configuration and check the Emby server logs for authentication errors. You can also test your LDAP configuration using ldapsearch as described in the authentik LDAP troubleshooting documentation.