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. Keycloak
  3. how to connect to a cloudron ldap via federation?

how to connect to a cloudron ldap via federation?

Scheduled Pinned Locked Moved Keycloak
12 Posts 5 Posters 752 Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic was forked from Keycloak & Cloudron joseph
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG girish

    @andreasdueren some of those LDAP settings look wrong. See https://docs.cloudron.io/user-directory/#configuring-clients . The Bind dialog looks OK (it uses the admin DN) but the user search is not correct . I tried to put some more info in the doc link, let me know if those work.

    andreasduerenA Online
    andreasduerenA Online
    andreasdueren
    wrote on last edited by
    #3

    @girish said in how to connect to a cloudron ldap via federation?:

    That works, but now I need to figure out what the Bind DN is to list all users, not just admins. user, users, person etc. don't seem to be correct.

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #4

      The directory server implementation for listing/searching users is at https://git.cloudron.io/platform/box/-/blob/master/src/directoryserver.js?ref_type=heads#L217 so basically all users are at ou=users,dc=cloudron

      andreasduerenA 1 Reply Last reply
      1
      • nebulonN nebulon

        The directory server implementation for listing/searching users is at https://git.cloudron.io/platform/box/-/blob/master/src/directoryserver.js?ref_type=heads#L217 so basically all users are at ou=users,dc=cloudron

        andreasduerenA Online
        andreasduerenA Online
        andreasdueren
        wrote on last edited by
        #5

        @nebulon

        Just to clarify, you're saying, this should work? Because it's only returning the system admins (me)

        Screenshot 2025-02-16 at 21.31.24.png

        1 Reply Last reply
        0
        • J Offline
          J Offline
          joseph
          Staff
          wrote on last edited by
          #6

          Cloudron LDAP is not writable afaik , it's read only

          1 Reply Last reply
          1
          • J Offline
            J Offline
            joseph
            Staff
            wrote on last edited by
            #7

            Does the "Test authentication" button say OK btw? In your screenshot, what is the user filter (if the ui provides this)?

            andreasduerenA 1 Reply Last reply
            0
            • J joseph

              Does the "Test authentication" button say OK btw? In your screenshot, what is the user filter (if the ui provides this)?

              andreasduerenA Online
              andreasduerenA Online
              andreasdueren
              wrote on last edited by
              #8

              @joseph Screenshot 2025-02-20 at 16.44.22.png Screenshot 2025-02-20 at 16.46.21.png

              But even with read only it fails

              J 1 Reply Last reply
              0
              • andreasduerenA andreasdueren

                @joseph Screenshot 2025-02-20 at 16.44.22.png Screenshot 2025-02-20 at 16.46.21.png

                But even with read only it fails

                J Offline
                J Offline
                joseph
                Staff
                wrote on last edited by
                #9

                @andreasdueren that seems like a socket error, so networking issue. What is the LDAP server / port you are using ? It's not in the screenshot

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  charlesnw
                  wrote on last edited by
                  #10

                  Did you get this working ?

                  Is the app setup out of box to federate to the Cloudron LDAP?

                  I want to use this as the IDP (proxy) for NetBird since that’s officially supported / documented in the NetBird docs (va attempting to use cloudron OIDC directly which I haven’t been able to fully wrap my head around).

                  I’m open to either. Though, of course , Keycloak is a common IDP and supported by many things out of the box. And since cloudron doesn’t really have fine grained admin permissions , Keycloak could be a way for me to delegate (for non cloudron apps) admin permissions.

                  andreasduerenA 1 Reply Last reply
                  0
                  • C charlesnw

                    Did you get this working ?

                    Is the app setup out of box to federate to the Cloudron LDAP?

                    I want to use this as the IDP (proxy) for NetBird since that’s officially supported / documented in the NetBird docs (va attempting to use cloudron OIDC directly which I haven’t been able to fully wrap my head around).

                    I’m open to either. Though, of course , Keycloak is a common IDP and supported by many things out of the box. And since cloudron doesn’t really have fine grained admin permissions , Keycloak could be a way for me to delegate (for non cloudron apps) admin permissions.

                    andreasduerenA Online
                    andreasduerenA Online
                    andreasdueren
                    wrote on last edited by
                    #11

                    @charlesnw nope, had to postpone working on it.

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      charlesnw
                      wrote last edited by
                      #12

                      To circle back on this...

                      I deployed Keycloak from the app store. I created a new (local) admin user and deleted the temp one (as per the instructions out of the box).

                      I then used the "Login with Cloudron" button and was able to login to Keycloak (as the non admin user from Cloudron directory) and my Cloudron user shows up in Keycloak .

                      I would be very interested in developing/documenting a tight integration/best practices between Cloudron/Keycloak as a way to greatly extend/enhance Cloudron user management. Setting up various tenants, self service enabling signups in those tenants etc. For example, building user on-boarding / approval workflows (where you bring on a new team member and they need to be provisioned into groups). Right now, only Cloudron Superadmins have the ability to manage groups, and that isn't a privilege I want to hand out 🙂

                      I originally planned to have Claude build me a web app and utilize the Cloudron API to build that functionality (and was going to AGPLv3 it). However, perhaps, with Keycloak we don't have to fully re-invent the wheel?

                      IAM is a VERY important requirement/feature to compete with AWS/Azure. It's the next thing my board wants to see as we move through go-live with Cloudron across our various projects/entities.

                      Who would be the key people I would need to work with to get this built out/tested/integrated/streamlined?

                      I realize that Cloudron (as I understand it) isn't currently positioned/targeting "enterprise" or those who may use AWS/Azure. I am happy todo the light/medium/(some) heavy lift work to help get it to where I need it to be. I am a founder/CTO of a company that is in the ramp up/growth phase. I steadfastly refuse to use the "big cloud" and Cloudron has been amazing at eliminating about 90% of system admin duties in a reliable way.

                      1 Reply Last reply
                      2
                      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