How do I configure Nextcloud to use Freedombox as an LDAP server?

Problem Description
I have installed the Nextcloud snap on my Freedombox, and added the offical “LDAP user and group backend” plug-in to Nextcloud.

I want to configure Nextcloud to use Freedombox’s built in LDAP server, however I need to know:

  • the DN of the client user to bind with
  • the base DN for users and groups

(Note, I don’t yet fully understand LDAP concepts like DNs.)

I’ve tried a few things but I’m basically guessing, and I can’t find any information searching - I’ve looked on this site or any other freedombox resources. However it looks like it should be simple to do if I know the right identifiers. See


  1. Can anyone point me in the right direction to obtaining correct settings for this?
  2. Also: is Nextcloud likely to work acceptably with my hardware? (Initial experiments suggest it might.)

Steps to Reproduce
Labels starting with $ indicate values you need to provide. Do not insert these labels literally!

  1. Log onto the freedombox terminal via ssh (with sudo)
  2. sudo apt install snapd
  3. sudo snap install nextcloud
  4. sudo /snap/bin/nextcloud.manual-install admin $password
  5. sudo snap set nextcloud ports.http=$random_port
  6. sudo /snap/bin/nextcloud.occ config:system:set overwritehost --value="$hostname"
  7. sudo /snap/bin/nextcloud.occ config:system:set overwritewebroot --value="/nextcloud"
  8. insert the following file in /etc/apache2/conf-available/nextcloud-plinth_custom.conf, symlink it into the sibling directory conf-enabled and sudo service apache2 restart

Content of nextcloud-plinth_custom.conf:

<Location /nextcloud>
    ProxyPass        http://localhost:$random_port/
    ## Send the scheme from user's request to enable Transmission to                                                                                                                                                                                                           
    ## redirect URLs, set cookies, set absolute URLs (if any)                                                                                                                                                                                                                  
    ## properly.                                                                                                                                                                                                                                                               
    RequestHeader    set X-Forwarded-Proto 'https' env=HTTPS

Expected Results
I expect to see Nextcloud and Freedom box user authentication synchronised, such that I can manage them from both.

Actual results
I cannot find LDAP settings which the Nextcloud plugin will accept and work with.


  • FreedomBox version: Debian GNU/Linux 10 (buster) and FreedomBox version 19.24
  • Nextcloud version: v16.0.5
  • Nextcloud LDAP backend plugin version: 1.6.0
  • Hardware: Pioneer-FreedomBox-HSK, i.e. an A20-OLinuXino-LIME2
  • How did you install FreedomBox?: I bought pre-installed hardware.