- 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 Nextcloud
Overview
This article explains how to configure LDAP authentication in Nextcloud, with MULTIDIRECTORY acting as the identity provider.
Prerequisites
- A running MULTIDIRECTORY instance.
- A pre-installed
Nextcloudenvironment.
Preparation
- Create a dedicated service account in
MULTIDIRECTORYwith read-only access to the directory.Nextcloudwill use this account to query user and group information. - Create access groups in
MULTIDIRECTORYforNextcloudusers to support role-based permissions. - Install the PHP LDAP extension on the
Nextcloudserver if it isn’t already enabled.
Nextcloud Configuration
- Log in to
Nextcloudas a local administrator. - In the left-hand navigation menu, go to Settings → Administration → Server (labeled «Server settings» or “Server Settings” in some UI versions).

In the opened menu, under the “Server Settings” heading, select “LDAP/AD Integration.”

On the “Server” tab, enter the connection details for your LDAP server to configure the integration. Once complete, click “Continue.”
Field Descriptions
- Server — Specify the address of your LDAP server. You can use either:
- ldaps:// (default port 636)
- Click “Detect Port” to let Nextcloud automatically determine the correct port.
- User DN — Enter the Distinguished Name (DN) of the service account that Nextcloud will use to bind to the MULTIDIRECTORY server.
- Password — Provide the password for the service account specified in the User DN field.
- Base DN — This field defines the root search base for users and groups in the directory. Click «Detect Base DN» to auto-populate it based on your LDAP server’s structure.

Users
Configure the criteria that Nextcloud will use to locate users in MULTIDIRECTORY:
- In the “Only these object classes” field, select the following object types:
- organizationalPerson
- person
- user
- In the «Only from these groups» field, specify the security groups in MULTIDIRECTORY that contain the users you want to sync with Nextcloud.
Once configured, click «Continue».

Note
You can also configure the LDAP filter manually by clicking «Edit LDAP Query».
Login Credentials
This section defines how users authenticate to Nextcloud—either via username or email.
To verify your configuration, enter a user’s login and click «Test Settings».
Field Descriptions
LDAP/AD Username— Enables login using the directory’s username attribute, typically uid (for standard LDAP) or sAMAccountName (for Active Directory–compatible systems like MULTIDIRECTORY).LDAP/AD Email Address— Allows users to sign in with their email address. Nextcloud will match against the mail or mailPrimaryAddress attributes in MULTIDIRECTORY.Other Attributes— Enables additional custom attributes for login (e.g., cn, employeeID), if needed.Edit LDAP Query— Opens an advanced editor to customize the LDAP search filter used to locate user accounts during authentication.

Groups
Configure the criteria Nextcloud will use to locate and sync groups from MULTIDIRECTORY.
In the «Only these object classes» field, select the object class: «group».
In the «Only from these groups» field, specify the groups that should be synchronized and granted access to Nextcloud.
Alternatively, you can define a custom LDAP search filter by clicking «Edit LDAP Query».
Attention
Note: When you click «Edit LDAP Query», the fields «Only these object classes» and «Only from these groups» become disabled, as the query overrides them.
To validate your configuration and refresh the group list, click «Test Settings and Recalculate Groups».
