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. GitLab
  3. GitLab External LDAP

GitLab External LDAP

Scheduled Pinned Locked Moved GitLab
9 Posts 4 Posters 1.5k Views 4 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.
  • tobiasReichelT Offline
    tobiasReichelT Offline
    tobiasReichel
    wrote on last edited by
    #1

    Hey Everyone,

    so I'm using jump cloud as my LDAP service and now I want to change the LDAP settings for GitLab it works but it gets overwritten every time the container restart

    how can I change that I don't see an obvious way?

    any other ideas than deploying my own container in cloudron?

    BrutalBirdieB 1 Reply Last reply
    0
    • tobiasReichelT tobiasReichel

      Hey Everyone,

      so I'm using jump cloud as my LDAP service and now I want to change the LDAP settings for GitLab it works but it gets overwritten every time the container restart

      how can I change that I don't see an obvious way?

      any other ideas than deploying my own container in cloudron?

      BrutalBirdieB Offline
      BrutalBirdieB Offline
      BrutalBirdie
      Partner
      wrote on last edited by
      #2

      @tobiasReichel
      I have a similar problem currently with the matrix server app, if someone wants to use an external turn server it gets overwritten on every start.

      Currently gitlab behaves the same.

      I was thinking about a solution where the normal startup script is default but if a custom startup script / scripts are provided it should run the custom ones.
      That would be a solution but requires a lot.. all apps to be updated with this in mind.

      Custom starting behavior. Hmmm
      @staff / @appdev what do you guys think? 🤔

      Like my work? Consider donating a drink. Cheers!

      BrutalBirdieB 1 Reply Last reply
      1
      • tobiasReichelT Offline
        tobiasReichelT Offline
        tobiasReichel
        wrote on last edited by
        #3

        yes that would be a solution or give us the option to override .env file that gets parsed with the docker

        1 Reply Last reply
        0
        • BrutalBirdieB BrutalBirdie

          @tobiasReichel
          I have a similar problem currently with the matrix server app, if someone wants to use an external turn server it gets overwritten on every start.

          Currently gitlab behaves the same.

          I was thinking about a solution where the normal startup script is default but if a custom startup script / scripts are provided it should run the custom ones.
          That would be a solution but requires a lot.. all apps to be updated with this in mind.

          Custom starting behavior. Hmmm
          @staff / @appdev what do you guys think? 🤔

          BrutalBirdieB Offline
          BrutalBirdieB Offline
          BrutalBirdie
          Partner
          wrote on last edited by
          #4

          Something like this for each startup script:

          custom_startup_dir="/app/data/app_startup"
          
          if [[ -d $custom_startup_dir]]; then
              echo "==>  Detected custom startup folder, running custom startup scripts"
              for script in ${custom_startup_dir}/*.sh; do
              bash "$script" || exit 1
              done
          else
              echo "==> Running default app Startup"
              default_startup()
          fi
          

          Note to self, this should also contain a check if the folder contains executable files.

          Like my work? Consider donating a drink. Cheers!

          1 Reply Last reply
          0
          • tobiasReichelT Offline
            tobiasReichelT Offline
            tobiasReichel
            wrote on last edited by
            #5

            But there is no easy way to implement it now right? Cause that looks like it belongs in the start.sh

            Or am I wrong?

            BrutalBirdieB 1 Reply Last reply
            1
            • tobiasReichelT tobiasReichel

              But there is no easy way to implement it now right? Cause that looks like it belongs in the start.sh

              Or am I wrong?

              BrutalBirdieB Offline
              BrutalBirdieB Offline
              BrutalBirdie
              Partner
              wrote on last edited by
              #6

              @tobiasReichel you are right. Currently it is part of the read-only start.sh

              https://git.cloudron.io/cloudron/gitlab-app/-/blob/master/start.sh#L44-L57

              Like my work? Consider donating a drink. Cheers!

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

                I see, so given that if Gitlab is installed without Cloudron user management enabled, it will always disable ldap, but not overwrite the other ldap related configs?

                tobiasReichelT 1 Reply Last reply
                1
                • nebulonN nebulon marked this topic as a question on
                • nebulonN nebulon

                  I see, so given that if Gitlab is installed without Cloudron user management enabled, it will always disable ldap, but not overwrite the other ldap related configs?

                  tobiasReichelT Offline
                  tobiasReichelT Offline
                  tobiasReichel
                  wrote on last edited by
                  #8

                  @nebulon

                  yes the options stay as far as I see

                  so any easy way to enable it as far as you know?

                  or do I need to deploy my own container with the template out of the gitlab and change the start.sh script?

                  girishG 1 Reply Last reply
                  0
                  • tobiasReichelT tobiasReichel

                    @nebulon

                    yes the options stay as far as I see

                    so any easy way to enable it as far as you know?

                    or do I need to deploy my own container with the template out of the gitlab and change the start.sh script?

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

                    @tobiasReichel Is it an option to use the Jumpcloud LDAP integration using https://docs.cloudron.io/user-management/#external-directory ? This way you don't need to configure GitLab specifically to use Jumpcloud.

                    1 Reply Last reply
                    0
                    • girishG girish moved this topic from Support on
                    • girishG girish marked this topic as a regular topic on
                    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