- Technology stack
- Architecture of the Solution
- Installing and Configuring MULTIDIRECTORY
- Configuring Kerberos in the MULTIDIRECTORY Web Interface
- Configuring DNS in the MULTIDIRECTORY Web Interface
- DHCP Configuration
- Domain Trust Configuration
- Group Policy
- Connecting MULTIFACTOR Self-Service Portal to MULTIDIRECTORY
- User, Group, and Resource Management
- Connecting to MULTIFACTOR
- Access Policies
- LDAP Schema
- LDAP Logging Configuration
- Password Policies
- Role and Permission Configuration
- LDAP Authentication in Ansible AWX
- LDAP Authentication in ArgoCD
- LDAP Authentication in GitLab
- LDAP Authentication in GitFlic
- LDAP Authentication in Jenkins
- LDAP Authentication in Harbor
- LDAP Authentication in Nexus
- LDAP Authentication in PostgreSQL
- LDAP Authentication in Rancher
- LDAP Authentication in Proxmox VE
- LDAP Authentication in SpaceVM
- LDAP Authentication in Tantor
- LDAP Authentication in Shturval
- LDAP Authentication in zVirt
- LDAP Authentication in GLPI
LDAP Authentication Setup Guide for Seafile
Overview
This article describes how to configure LDAP authentication in Seafile using MULTIDIRECTORY as the identity provider.
To integrate Seafile with MULTIDIRECTORY, you must create a dedicated service account that acts as an LDAP reader — this account enables Seafile to query the directory and authenticate users.
Prerequisites
- MULTIDIRECTORY directory service must be installed and operational.
- Seafile system must be deployed and accessible.
Preparation Steps
- MULTIDIRECTORY directory service must be installed and operational.
Seafile Configuration
To configure integration with MULTIDIRECTORY, set up the LDAP configuration on the server where Seafile is installed.
Edit the configuration file located at:
/opt/seafile-data/seafile/conf/seahub_settings.py
Add the following configuration to the server by appending it to the end of the seahub_settings.py file.
Below is a list of fields required for minimal LDAP integration with MULTIDIRECTORY:
ENABLE_LDAP = True # LDAP authentication enable flag. LDAP_SERVER_URL = 'ldap://192.168.3.2' # IP address or hostname of the MultiDirectory server. LDAP_BASE_DN = 'ou=users,dc=md,dc=loc' # User account search base in the directory. LDAP_ADMIN_DN = 'admin@md.loc' # Service account (user account) with read permissions to the directory. LDAP_ADMIN_PASSWORD = 'password' # Password for the service account specified above. LDAP_PROVIDER = 'ldap' # Type of LDAP provider used. LDAP_LOGIN_ATTR = 'mail' # LDAP attribute used for user authentication. LDAP_CONTACT_EMAIL_ATTR = 'mail' # LDAP attribute from which Seafile will retrieve the user's email address. LDAP_USER_FIRST_NAME_ATTR = 'givenName' # LDAP attribute containing the user's first name. LDAP_USER_LAST_NAME_ATTR = 'sn' # LDAP attribute containing the user's last name.
Note
LDAP_LOGIN_ATTR — uses only mail or userPrincipalName for the unique user identifier.
After entering the data on the server, restart Seafile.
- If Seafile was installed via apt, the restart command is as follows:
systemctl restart seafile.service
- Installation via Docker:
docker restart seafile_container_name
After restarting Seafile, log in to the admin dashboard and verify the LDAP connection.


Note
- LDAP – displays user accounts (UAs) that have successfully logged into Seafile, as well as any error messages if the LDAP integration configuration is incorrect.
- LDAP (imported) – shows all user accounts imported from MULTIDIRECTORY.
After verifying that the configuration is up to date and there are no errors in the LDAP tab, go to the main login screen and enter your MULTIDIRECTORY credentials.
Note
Seafile authentication uses the login in the format userPrincipalName or mail.
The LDAP_LOGIN_ATTR setting exclusively uses either mail or userPrincipalName as the unique user identifier.Example:
test@md.ru
