• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Company · Blog · Newsletter · Events · Partner Program

Downloads      Support      Security     Admin Login
Rublon

Rublon

Secure Remote Access

  • Product
    • Regulatory Compliance
    • Use Cases
    • Rublon Reviews
    • Authentication Basics
    • What is MFA?
    • Importance of MFA
    • User Experience
    • Authentication Methods
    • Rublon Authenticator
    • Remembered Devices
    • Logs
    • Single Sign-On
    • Access Policies
    • Directory Sync
  • Solutions
    • MFA for Remote Desktop
    • MFA for Remote Access Software
    • MFA for Windows Logon
    • MFA for Linux
    • MFA for Active Directory
    • MFA for LDAP
    • MFA for RADIUS
    • MFA for SAML
    • MFA for RemoteApp
    • MFA for Workgroup Accounts
    • MFA for Entra ID
  • Customers
  • Industries
    • Financial Services
    • Investment Funds
    • Retail
    • Technology
    • Healthcare
    • Legal
    • Education
    • Government
  • Pricing
  • Docs
Contact Sales Free Trial

Multi-Factor Authentication (2FA/MFA) for Nextcloud

Multi-Factor (MFA) and Two-Factor Authentication (2FA) for Nextcloud

July 25, 2024 By Rublon Authors

Last updated on July 8, 2025

Nextcloud is an open-source content collaboration platform for creating and using file hosting services. It provides functionality similar to Dropbox, Office 365, or Google Drive when used with integrated office suites like Collabora Online or OnlyOffice. Nextcloud can be hosted in the cloud or on-premises, making it scalable from home office setups based on low-cost Raspberry Pi devices to full-sized data centers supporting millions of users1. Additionally, Nextcloud offers features such as granular permissions, local synchronization with Windows, macOS, Linux, and FreeBSD clients, and security options like multi-factor authentication.

Multi-Factor Authentication (MFA) for Nextcloud adds an extra layer of security to Nextcloud logins. Users must complete both primary (login/password) and secondary (Mobile Push) authentication. Even if a cybercriminal knows a user’s password, they won’t gain access without completing the second step.

Overview of MFA for Nextcloud

This documentation describes how to integrate Rublon MFA with Nextcloud using the LDAP(S) protocol to enable multi-factor authentication for Nextcloud logins.

Rublon MFA for Nextcloud integrates via the Rublon Authentication Proxy, supporting the LDAP protocol. It ensures that only authorized users proceed to the secondary authentication method, denying access to potential intruders.

Supported Authentication Methods

Authentication Method Supported Comments
Mobile Push ✔ N/A
WebAuthn/U2F Security Key – N/A
Passcode ✔ N/A
SMS Passcode – N/A
SMS Link ✔ N/A
Phone Call ✔ N/A
QR Code – N/A
Email Link ✔ N/A
YubiKey OTP Security Key ✔ N/A

Before You Start Configuring MFA for Nextcloud

Before configuring Rublon MFA for Nextcloud:

  • Ensure you have prepared all required components.
  • Create an application in the Rublon Admin Console.
  • Install the Rublon Authenticator mobile app.

Required Components

1. User Identity Provider (IdP) – You need an external Identity Provider, such as Microsoft Active Directory, OpenLDAP, or FreeRADIUS.

2. Rublon Authentication Proxy – Install the Rublon Authentication Proxy if you have not already.

Warning

You need to install Rublon Authentication Proxy version 3.4.0 or higher for this integration to work properly!

3. Nextcloud Server  – Properly configured.

Create an Application in the Rublon Admin Console

1. Sign up for the Rublon Admin Console. Here’s how.

2. In the Rublon Admin Console, go to the Applications tab and click Add Application. 

3. Enter a name for your application (e.g., Nextcloud) and then set the type to Rublon Authentication Proxy.

4. Click Save to add the new application in the Rublon Admin Console.

5. Copy and save the values of the System Token and Secret Key. You are going to need these values later.

Install Rublon Authenticator

Some end-users will install the Rublon Authenticator mobile app. So, as a person configuring MFA for Nextcloud, we highly recommend you install the Rublon Authenticator mobile app, too. Thanks to that, you will be able to test MFA for Nextcloud via Mobile Push.

Download the Rublon Authenticator for:

  • Android
  • iOS
  • HarmonyOS

Configuring Multi-Factor Authentication (MFA) for Nextcloud

Adding LDAP App to Nextcloud

1. In the top-right corner, click your account’s avatar and select Apps.

2. In the left pane, select Your apps, scroll all the way down, and click Enable next to LDAP user and group backend.

Configuring LDAP

1. In the top-right corner, click your account’s avatar and select Administration settings.

2. In the pane on the left, navigate to the Administration section, and select LDAP/AD Integration.

3. Let’s start from the Server tab. This is the only mandatory tab. All other tabs can be skipped if you do not mind the default settings. Fill in the fields and click Continue. Refer to the following image and table.

ServerThe IP address or hostname of the Rublon Authentication Proxy LDAP Proxy server
Port389 for LDAP
User DNThe user from your AD/LDAP written in LDAP notation, e.g., cn=rublonadmin,ou=Rublon,dc=rublondemo,dc=local
PasswordThe password of the User DN user.
Base DNIn this section, you can enter the specific Distinguished Name (DN) for fetching users, such as dc=rublondemo,dc=local

4. In the Users tab, the settings depend on your preferences and how your base LDAP is configured. The default settings should suffice. Click Continue to go to the next tab. In case you want to change the settings:

  • Only these object classes: defines what object classes from LDAP should be taken into account when searching for users (person by default)
  • Only from these groups: restricts access to users of the specified group or groups. However, you do not have to indicate any group in which case users from the entire domain or the Base DN will be taken into account.
  • Note that the LDAP Filter listed below changes depending on the selected settings.
  • You can verify the correctness of your settings using Verify settings and count users. After clicking this button, the number of detected users should appear next to it.

5. In the Login Attributes tab, the settings depend on your preferences and how your base LDAP is configured. The default LDAP/AD Username setting should suffice. Click Continue to go to the next tab. Optionally, you can click Verify settings to check if your settings are correct.

6. In the Groups tab, the settings depend on your preferences and how your base LDAP is configured. The default settings should suffice.

7. Your LDAP configuration is complete. You can now test your setup.

Testing Multi-Factor Authentication (MFA) for Nextcloud

This example portrays logging in to Nextcloud via the Nextcloud subdomain login page, e.g. https://nextcloud.example.co/. Mobile Push has been set as the second factor in Rublon Authentication Proxy configuration (AUTH_METHOD was set to push).

1. Go to your Nextcloud subdomain login page.

2. Enter your login and password.

3. Rublon will send a Mobile Push authentication request to your phone. Tap APPROVE.

4. You will gain access.

Troubleshooting of MFA for Nextcloud using LDAP

If you encounter any issues with your Rublon integration, please contact Rublon Support.

Related Posts

Rublon Authentication Proxy

Rublon Authentication Proxy – Integrations

Filed Under: Documentation

Primary Sidebar

Contents

  • Overview of MFA for Nextcloud
  • Supported Authentication Methods
  • Before You Start Configuring MFA for Nextcloud
    • Required Components
    • Create an Application in the Rublon Admin Console
    • Install Rublon Authenticator
  • Configuring Multi-Factor Authentication (MFA) for Nextcloud
    • Adding LDAP App to Nextcloud
    • Configuring LDAP
  • Testing Multi-Factor Authentication (MFA) for Nextcloud
  • Troubleshooting of MFA for Nextcloud using LDAP
  • Related Posts
Try Rublon for Free
Start your 30-day Rublon Trial to secure your employees using multi-factor authentication.
No Credit Card Required


Footer

Product

  • Regulatory Compliance
  • Use Cases
  • Rublon Reviews
  • Authentication Basics
  • What is MFA?
  • Importance of MFA
  • User Experience
  • Authentication Methods
  • Rublon Authenticator
  • Remembered Devices
  • Logs
  • Single Sign-On
  • Access Policies
  • Directory Sync

Solutions

  • MFA for Remote Desktop
  • MFA for Windows Logon
  • MFA for Remote Access Software
  • MFA for Linux
  • MFA for Active Directory
  • MFA for LDAP
  • MFA for RADIUS
  • MFA for SAML
  • MFA for RemoteApp
  • MFA for Workgroup Accounts
  • MFA for Entra ID

Industries

  • Financial Services
  • Investment Funds
  • Retail
  • Technology
  • Healthcare
  • Legal
  • Education
  • Government

Documentation

  • 2FA for Windows & RDP
  • 2FA for RDS
  • 2FA for RD Gateway
  • 2FA for RD Web Access
  • 2FA for SSH
  • 2FA for OpenVPN
  • 2FA for SonicWall VPN
  • 2FA for Cisco VPN
  • 2FA for Office 365

Support

  • Knowledge Base
  • FAQ
  • System Status

About

  • About Us
  • Blog
  • Events
  • Co-funded by the European Union
  • Contact Us

  • Facebook
  • GitHub
  • LinkedIn
  • Twitter
  • YouTube

© 2025 Rublon · Imprint · Legal & Privacy · Security

  • English