Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discourse
  3. How to configure LDAP in Discourse?

How to configure LDAP in Discourse?

Scheduled Pinned Locked Moved Discourse
25 Posts 5 Posters 5.4k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #16

    @yusf To keep you updated, I looked into this a bit further. The issue is that when we add ldap as addon, Cloudron UI selects this as the default. For an app like discourse, using LDAP is uncommon since it's mostly a publicly forum use case.

    I think before we add LDAP support to nodebb/discourse etc, we need to fix Cloudron to support "dynamic addons". This way one can toggle LDAP support on/off whenever they want. That's the best way to fix this. Otherwise, I suspect, people will blindly install Discourse with LDAP, then disable LDAP inside Discourse and this will only lead to problems (since in Cloudron packages currently we assume that LDAP support is never removed like that inside an app).

    yusfY jdaviescoatesJ 3 Replies Last reply
    3
    • girishG girish

      @yusf To keep you updated, I looked into this a bit further. The issue is that when we add ldap as addon, Cloudron UI selects this as the default. For an app like discourse, using LDAP is uncommon since it's mostly a publicly forum use case.

      I think before we add LDAP support to nodebb/discourse etc, we need to fix Cloudron to support "dynamic addons". This way one can toggle LDAP support on/off whenever they want. That's the best way to fix this. Otherwise, I suspect, people will blindly install Discourse with LDAP, then disable LDAP inside Discourse and this will only lead to problems (since in Cloudron packages currently we assume that LDAP support is never removed like that inside an app).

      yusfY Offline
      yusfY Offline
      yusf
      wrote on last edited by
      #17

      @girish Seems like an apt solution to the problem. Thanks for looking into it.

      For what it’s worth I’m often faced with the opposite use-case: some group need internal forum software, apart from other Cloudron services. So I’m interested in doing the same thing with NodeBB.

      1 Reply Last reply
      2
      • girishG girish

        @yusf To keep you updated, I looked into this a bit further. The issue is that when we add ldap as addon, Cloudron UI selects this as the default. For an app like discourse, using LDAP is uncommon since it's mostly a publicly forum use case.

        I think before we add LDAP support to nodebb/discourse etc, we need to fix Cloudron to support "dynamic addons". This way one can toggle LDAP support on/off whenever they want. That's the best way to fix this. Otherwise, I suspect, people will blindly install Discourse with LDAP, then disable LDAP inside Discourse and this will only lead to problems (since in Cloudron packages currently we assume that LDAP support is never removed like that inside an app).

        jdaviescoatesJ Offline
        jdaviescoatesJ Offline
        jdaviescoates
        wrote on last edited by
        #18

        @girish said in How to configure LDAP in Discourse?:

        For an app like discourse, using LDAP is uncommon since it's mostly a publicly forum use case.

        Even in those cases it'd still be nice to have LDAP, like we can in Rocket.Chat right now, i.e. Cloudron uses can use LDAP to login to Rocket.Chat using their Clourdon credentials, and non-Cloudron users can just register and login as normal too.

        I'd like the same UX for Discourse too, best of both worlds! 🙂

        I use Cloudron with Gandi & Hetzner

        1 Reply Last reply
        1
        • girishG girish

          @yusf To keep you updated, I looked into this a bit further. The issue is that when we add ldap as addon, Cloudron UI selects this as the default. For an app like discourse, using LDAP is uncommon since it's mostly a publicly forum use case.

          I think before we add LDAP support to nodebb/discourse etc, we need to fix Cloudron to support "dynamic addons". This way one can toggle LDAP support on/off whenever they want. That's the best way to fix this. Otherwise, I suspect, people will blindly install Discourse with LDAP, then disable LDAP inside Discourse and this will only lead to problems (since in Cloudron packages currently we assume that LDAP support is never removed like that inside an app).

          yusfY Offline
          yusfY Offline
          yusf
          wrote on last edited by
          #19

          @girish And meanwhile if I want to go venture off with a forked Discourse app with the only difference being that the LDAP addon is added, I should be able to stay compatible with the official one within foreseeable future, right?

          1 Reply Last reply
          1
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #20

            @yusf Yes, it should remain compatible. I haven't gotten time to updating the Dockerfile to have the LDAP plugin pre-installed and pre-configured. If you have the code for that, I can look into merging it.

            jdaviescoatesJ 1 Reply Last reply
            2
            • girishG girish

              @yusf Yes, it should remain compatible. I haven't gotten time to updating the Dockerfile to have the LDAP plugin pre-installed and pre-configured. If you have the code for that, I can look into merging it.

              jdaviescoatesJ Offline
              jdaviescoatesJ Offline
              jdaviescoates
              wrote on last edited by jdaviescoates
              #21

              @girish yet another reason for having the LDAP plugin for Discourse pre-installed and pre-configured on Cloudron would be so that we can start to try and reverse engineer the new Discourse Teams as much as possible (sadly it's not all open source, although as I understand it lots of the features are just using open source plugins)

              More info about the difference between Discourse and Discourse Teams:

              https://support.teams.discourse.com/docs?topic=85
              https://meta.discourse.org/t/comparing-discourse-for-teams-with-discourse/168423/7

              Edit: and following my prompts they've now added the list of open source plugins they use in Teams to that support link, i.e.

              Ships with the following official plugins: akismet, assign, cakeday, calendar, chat-integration, checklist, code-review, docs, encrypt, footnote, github, graphviz, math, openid-connect, policy, rss-polling, solved, spoiler-alert

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply
              1
              • luckowL Offline
                luckowL Offline
                luckow
                translator
                wrote on last edited by
                #22

                Sorry. Got to the party too late. Today I installed the LDAP plugin from here https://github.com/jonmbake/discourse-ldap-auth and took some ldap creds from my wekan app.
                Short info: both user managements lives together in harmony
                e488d690-4e2e-49dd-8655-7cd486cc0155-image.png
                In my understanding the sign-up process goes to discourse user management. LDAP is only for the sign-in process (makes sense).
                The only glitch at the moment:
                c2e7abd3-cd4a-45d5-8fde-23c0200d48d1-image.png
                Disabling LDAP in the Plugin settings doesn't change anything.

                My 2 cents for the moment: please add the LDAP addon to this app, because of the plugin and some use cases, where LDAP makes sense.

                Pronouns: he/him | Primary language: German

                girishG jdaviescoatesJ 2 Replies Last reply
                2
                • luckowL luckow

                  Sorry. Got to the party too late. Today I installed the LDAP plugin from here https://github.com/jonmbake/discourse-ldap-auth and took some ldap creds from my wekan app.
                  Short info: both user managements lives together in harmony
                  e488d690-4e2e-49dd-8655-7cd486cc0155-image.png
                  In my understanding the sign-up process goes to discourse user management. LDAP is only for the sign-in process (makes sense).
                  The only glitch at the moment:
                  c2e7abd3-cd4a-45d5-8fde-23c0200d48d1-image.png
                  Disabling LDAP in the Plugin settings doesn't change anything.

                  My 2 cents for the moment: please add the LDAP addon to this app, because of the plugin and some use cases, where LDAP makes sense.

                  girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #23

                  @luckow said in How to configure LDAP in Discourse?:

                  Disabling LDAP in the Plugin settings doesn't change anything.

                  Probably have to restart discourse?

                  luckowL 1 Reply Last reply
                  0
                  • girishG girish

                    @luckow said in How to configure LDAP in Discourse?:

                    Disabling LDAP in the Plugin settings doesn't change anything.

                    Probably have to restart discourse?

                    luckowL Offline
                    luckowL Offline
                    luckow
                    translator
                    wrote on last edited by
                    #24

                    @girish nope. same, same.

                    Pronouns: he/him | Primary language: German

                    1 Reply Last reply
                    0
                    • luckowL luckow

                      Sorry. Got to the party too late. Today I installed the LDAP plugin from here https://github.com/jonmbake/discourse-ldap-auth and took some ldap creds from my wekan app.
                      Short info: both user managements lives together in harmony
                      e488d690-4e2e-49dd-8655-7cd486cc0155-image.png
                      In my understanding the sign-up process goes to discourse user management. LDAP is only for the sign-in process (makes sense).
                      The only glitch at the moment:
                      c2e7abd3-cd4a-45d5-8fde-23c0200d48d1-image.png
                      Disabling LDAP in the Plugin settings doesn't change anything.

                      My 2 cents for the moment: please add the LDAP addon to this app, because of the plugin and some use cases, where LDAP makes sense.

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #25

                      @luckow said in How to configure LDAP in Discourse?:

                      My 2 cents for the moment: please add the LDAP addon to this app, because of the plugin and some use cases, where LDAP makes sense.

                      +1000000

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply
                      1
                      • jamesJ james marked this topic as a regular topic
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search