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. Feature Requests
  3. LDAP/AD Server

LDAP/AD Server

Scheduled Pinned Locked Moved Solved Feature Requests
auth
60 Posts 16 Posters 9.9k Views 19 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.
  • marcusquinnM marcusquinn

    OK, so we have Cloudron and Univention Corporate Server (UCS) connected and seemingly working.

    A couple of questions:

    1. "Automatically create users when they login to Cloudron" - is this just creating Cloudron Users when someone tries to login that has a USC login/pass but not yet a Cloudron User?
    2. Is there any way to sync Cloudron Users upstream to UCS?
    3. Does this support SSO?
      • https://www.univention.com/blog-en/2018/06/one-password-for-all-services-and-networks-with-single-sign-on/
    fbartelsF Offline
    fbartelsF Offline
    fbartels
    App Dev
    wrote on last edited by
    #47

    @marcusquinn said in LDAP/AD Server:

    Does this support SSO?

    That is why I suggested to run UCS in your local network. You could SSO with Kerberos from your workstation and then be directly signed into configured saml and oidc applications (and Kerberos of course as well). This only has two downsides:

    • their sso clashes with their lets encrypt app, which requires manual work after the first certificate has been retrieved.
    • this all does not touch Cloudron anymore, except you mod applications on Cloudron for one of the above auth methods
    1 Reply Last reply
    3
    • marcusquinnM Offline
      marcusquinnM Offline
      marcusquinn
      wrote on last edited by
      #48

      Thank you both @luckow & @fbartels I feel this thread is a useful repo for gathering all the experience and getting this it's own Cloudron documentation.

      We'll add anything we've learned and steps along the way to get whatever we can working.

      Something I'm not sure that anyone knew before was that both Hetzner and Contabo will offer access to the custom ISO to install from if you ask them nicely and send them the correct public link to it.

      Hetzner I know we can create a Network within, I've not needed to try that with Contabo yet though.

      I've also learned about Proxmox, and that could be worthy of it's own dedicated how-to thread and documentation here, given the utility it can offer self-hosting on bare metal on premises or leased.

      The community experience here is priceless!

      Web Design https://www.evergreen.je
      Development https://brandlight.org
      Life https://marcusquinn.com

      1 Reply Last reply
      3
      • fbartelsF Offline
        fbartelsF Offline
        fbartels
        App Dev
        wrote on last edited by
        #49

        Replying here since this is the largest collection of ldap specific topics on this forum.

        My cloudron installation is around longer than the cloudron external ldap support. When configuring an external ldap users with a conflicting username (same username already exists on cloudron) get skipped on synchronisation. Which is generally a good thing. But I still wanted to transfer password management for some of these users to my ldap.

        This can be done by running the following command from the shell of the cloudron host (only change the-user-i-want-to-change to the actual user):

        mysql -uroot -ppassword -e 'update users set source="ldap" where username="the-user-i-want-to-change";'
        
        fbartelsF 1 Reply Last reply
        6
        • fbartelsF fbartels

          Replying here since this is the largest collection of ldap specific topics on this forum.

          My cloudron installation is around longer than the cloudron external ldap support. When configuring an external ldap users with a conflicting username (same username already exists on cloudron) get skipped on synchronisation. Which is generally a good thing. But I still wanted to transfer password management for some of these users to my ldap.

          This can be done by running the following command from the shell of the cloudron host (only change the-user-i-want-to-change to the actual user):

          mysql -uroot -ppassword -e 'update users set source="ldap" where username="the-user-i-want-to-change";'
          
          fbartelsF Offline
          fbartelsF Offline
          fbartels
          App Dev
          wrote on last edited by
          #50

          I have also made a writeup of this on my blog

          luckowL 1 Reply Last reply
          3
          • girishG girish

            @robi said in LDAP/AD Server:

            VPN to Cloudron for LDAP is reasonable.

            I think that would then mean that the external app has to be in the VPN, no?

            LonkleL Offline
            LonkleL Offline
            Lonkle
            wrote on last edited by
            #51

            @girish said in LDAP/AD Server:

            @robi said in LDAP/AD Server:

            VPN to Cloudron for LDAP is reasonable.

            I think that would then mean that the external app has to be in the VPN, no?

            I'll be releasing my VPN Client for Cloudron over summer if that helps. 😅

            1 Reply Last reply
            0
            • fbartelsF fbartels

              I have also made a writeup of this on my blog

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

              @fbartels Top post. Thank you.
              One (maybe) last question: do you have a solution for the different allowed characters in UCS and Cloudron usernames? My idea is to have some kind of profile with only allowed characters on the UCS side. See https://docs.cloudron.io/user-management/#valid-usernames for characters allowed in Cloudron.

              Pronouns: he/him | Primary language: German

              fbartelsF 1 Reply Last reply
              1
              • luckowL luckow

                @fbartels Top post. Thank you.
                One (maybe) last question: do you have a solution for the different allowed characters in UCS and Cloudron usernames? My idea is to have some kind of profile with only allowed characters on the UCS side. See https://docs.cloudron.io/user-management/#valid-usernames for characters allowed in Cloudron.

                fbartelsF Offline
                fbartelsF Offline
                fbartels
                App Dev
                wrote on last edited by
                #53

                Thanks @luckow

                Yes, I have seen the question that @BrutalBirdie posted at https://help.univention.com/t/restrict-username-allowed-characters/17280 as well. But no, I am not aware of a way to limit characters with the ucs self registration.

                1 Reply Last reply
                3
                • marcusquinnM Offline
                  marcusquinnM Offline
                  marcusquinn
                  wrote on last edited by
                  #54

                  Related: https://forum.cloudron.io/topic/5636/quite-urgent-accessing-cloudron-ldap-from-an-external-instance-of-espocrm

                  Web Design https://www.evergreen.je
                  Development https://brandlight.org
                  Life https://marcusquinn.com

                  1 Reply Last reply
                  0
                  • fbartelsF Offline
                    fbartelsF Offline
                    fbartels
                    App Dev
                    wrote on last edited by fbartels
                    #55

                    Not sure if it was already mentioned here, but there is https://github.com/mitchellurgero/cloudron-ldap-proxy by @murgero. It's downside is however that the connection is not encrypted.

                    A potential improvement over this would be to have a small app, that generates a custom ssl ca and serves its root cert over a small webserver. Then you use the same ca to provide a certificate to stunnel, which simply passes through the otherwise internal Cloudron ldap.

                    Then at least the communication would be secured, but it may still be an idea to limit who can actually reach that port through your firewall.

                    As a custom build this is quite easily doable, as an official app its probably too special.

                    marcusquinnM 1 Reply Last reply
                    0
                    • fbartelsF fbartels

                      Not sure if it was already mentioned here, but there is https://github.com/mitchellurgero/cloudron-ldap-proxy by @murgero. It's downside is however that the connection is not encrypted.

                      A potential improvement over this would be to have a small app, that generates a custom ssl ca and serves its root cert over a small webserver. Then you use the same ca to provide a certificate to stunnel, which simply passes through the otherwise internal Cloudron ldap.

                      Then at least the communication would be secured, but it may still be an idea to limit who can actually reach that port through your firewall.

                      As a custom build this is quite easily doable, as an official app its probably too special.

                      marcusquinnM Offline
                      marcusquinnM Offline
                      marcusquinn
                      wrote on last edited by
                      #56

                      @fbartels Thank you kindly! @vladimir-d is working on this issues, and we may try pulling in extra help too.

                      All ideas are welcome as we are heads-deep in plugging the knock-on consequences if these still unsolved things.

                      I wish I could find the time to show more people what they will get back from us in development investment, but I can't do any of these things while blocker issues have become day & night urgencies.

                      Web Design https://www.evergreen.je
                      Development https://brandlight.org
                      Life https://marcusquinn.com

                      1 Reply Last reply
                      0
                      • robiR Offline
                        robiR Offline
                        robi
                        wrote on last edited by
                        #57

                        It looks like my friends at Aporeto.com got acquired by PaloAlto Networks. They have an OSS projects called Trireme - https://github.com/aporeto-inc

                        Trireme, an open-source library curated by Aporeto to provide cryptographic isolation for cloud-native applications. Trireme-lib is a Zero-Trust networking library that makes it possible to setup security policies and segment applications by enforcing end-to-end authentication and authorization without the need for complex control planes or IP/port-centric ACLs and east-west firewalls.

                        Trireme-lib supports both containers and Linux processes as well user-based activation, and it allows security policy enforcement between any of these entities.

                        A good tool for Cloudron as well as securing LDAP across machines.

                        Conscious tech

                        robiR 1 Reply Last reply
                        0
                        • fbartelsF Offline
                          fbartelsF Offline
                          fbartels
                          App Dev
                          wrote on last edited by
                          #58

                          At my place of work we developed a small golang ldap server some months ago. I have spent some time this weekend packaging this project up for cloudron and also have included an openid connect provider.

                          The ldap server is really simple, it basically takes an existing ldif as input and serves this out to any authenticated user. It does not even allow modifying items through e.g. ldapmodify, but requires the ldif on disk to be changed.

                          LDAP and OpenID Connect Provider are part of the https://libregraph.github.io/ project.

                          If someone is interested in trying out the app please send me a direct message.

                          1 Reply Last reply
                          1
                          • robiR robi

                            It looks like my friends at Aporeto.com got acquired by PaloAlto Networks. They have an OSS projects called Trireme - https://github.com/aporeto-inc

                            Trireme, an open-source library curated by Aporeto to provide cryptographic isolation for cloud-native applications. Trireme-lib is a Zero-Trust networking library that makes it possible to setup security policies and segment applications by enforcing end-to-end authentication and authorization without the need for complex control planes or IP/port-centric ACLs and east-west firewalls.

                            Trireme-lib supports both containers and Linux processes as well user-based activation, and it allows security policy enforcement between any of these entities.

                            A good tool for Cloudron as well as securing LDAP across machines.

                            robiR Offline
                            robiR Offline
                            robi
                            wrote on last edited by
                            #59

                            @robi said in LDAP/AD Server:

                            It looks like my friends at Aporeto.com got acquired by PaloAlto Networks. They have an OSS projects called Trireme - https://github.com/aporeto-inc

                            I think this needs to be revisited for Cloudron 7+ to easily manage which app can talk to which by policy. /cc @staff

                            Conscious tech

                            1 Reply Last reply
                            0
                            • marcusquinnM marcusquinn referenced this topic on
                            • marcusquinnM Offline
                              marcusquinnM Offline
                              marcusquinn
                              wrote on last edited by
                              #60

                              Sounds like this is now done and live with 7.1?

                              • https://forum.cloudron.io/topic/6654/cloudron-7-1-released
                              • https://blog.cloudron.io/cloudron-7-1-released/
                              • https://docs.cloudron.io/user-management/#directory-server

                              Web Design https://www.evergreen.je
                              Development https://brandlight.org
                              Life https://marcusquinn.com

                              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