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. App Packaging & Development
  3. LDAP logs

LDAP logs

Scheduled Pinned Locked Moved Solved App Packaging & Development
10 Posts 2 Posters 1.7k Views 2 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.
    • ultravioletU Offline
      ultravioletU Offline
      ultraviolet
      App Dev
      wrote on last edited by
      #1

      Hi all,
      I was wondering where logs might be for LDAP requests. Trying to troubleshoot an app that is just not wanting to authenticate with LDAP.
      thanks

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

        They are in the main box logs, however with the current release we only log requests, which hit a valid namespace. The next release will also log faulty ones for exactly the case to debug app integration.

        ultravioletU 1 Reply Last reply
        0
        • nebulonN nebulon

          They are in the main box logs, however with the current release we only log requests, which hit a valid namespace. The next release will also log faulty ones for exactly the case to debug app integration.

          ultravioletU Offline
          ultravioletU Offline
          ultraviolet
          App Dev
          wrote on last edited by
          #3

          @nebulon thanks.

          LDAP for my teddy application is failing any ideas at to why these results might not work?

          68d9e3ca-e53a-4d2a-b1e5-a8d6d2d16426-image.png

          nebulonN 1 Reply Last reply
          0
          • ultravioletU ultraviolet

            @nebulon thanks.

            LDAP for my teddy application is failing any ideas at to why these results might not work?

            68d9e3ca-e53a-4d2a-b1e5-a8d6d2d16426-image.png

            nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            @ultraviolet these do look correct, only thing I could spot is the uppercase USERNAME however I think LDAP filters are not case sensitive anyways.

            Can you see any log message at all, like the admin bind or any search?

            ultravioletU 1 Reply Last reply
            0
            • nebulonN nebulon

              @ultraviolet these do look correct, only thing I could spot is the uppercase USERNAME however I think LDAP filters are not case sensitive anyways.

              Can you see any log message at all, like the admin bind or any search?

              ultravioletU Offline
              ultravioletU Offline
              ultraviolet
              App Dev
              wrote on last edited by
              #5

              @nebulon took a bit of digging but yes there is something:

              The filter &(objectclass=user)(|(adminldap=%uid)(adminldap=%uid))) is invalid.

              Which is weird. LDAP search strings are not my strong point

              ultravioletU 1 Reply Last reply
              0
              • ultravioletU ultraviolet

                @nebulon took a bit of digging but yes there is something:

                The filter &(objectclass=user)(|(adminldap=%uid)(adminldap=%uid))) is invalid.

                Which is weird. LDAP search strings are not my strong point

                ultravioletU Offline
                ultravioletU Offline
                ultraviolet
                App Dev
                wrote on last edited by
                #6

                @ultraviolet fixed it missed a ( at the start of the string:

                a5b709fa-b0c8-4181-abde-5089642e611c-image.png

                nebulonN 1 Reply Last reply
                0
                • ultravioletU ultraviolet

                  @ultraviolet fixed it missed a ( at the start of the string:

                  a5b709fa-b0c8-4181-abde-5089642e611c-image.png

                  nebulonN Offline
                  nebulonN Offline
                  nebulon
                  Staff
                  wrote on last edited by
                  #7

                  @ultraviolet good catch! so it works now?

                  ultravioletU 1 Reply Last reply
                  0
                  • nebulonN nebulon

                    @ultraviolet good catch! so it works now?

                    ultravioletU Offline
                    ultravioletU Offline
                    ultraviolet
                    App Dev
                    wrote on last edited by
                    #8

                    @nebulon it does.

                    I am trying to automate the install of the LDAP details. Teedy has a database that holds the ldap details. I am struggling to get this INSERT statement into start.sh:

                    INSERT into t_config (cfg_id_c, cfg_value_c) 
                    VALUES('LDAP_ENABLED', true), ('LDAP_HOST', $CLOUDRON_LDAP_SERVER), 
                    ('LDAP_PORT', $CLOUDRON_LDAP_PORT), ('LDAP_ADMIN_DN', $CLOUDRON_LDAP_BIND_DN),
                    ('LDAP_ADMIN_PASSWORD', $CLOUDRON_LDAP_BIND_PASSWORD), 
                    ('LDAP_BASE_DN', $CLOUDRON_LDAP_BIND_PASSWORD),
                    ('LDAP_BASE_DN', $CLOUDRON_LDAP_USERS_BASE_DN),
                    ('LDAP_DEAFULT_EMAIL', 'mail@mail.com'),
                    ('LDAP_FILTER', '(objectclass=user)(|(USERNAME=%uid)(USERNAME=%uid)))'),
                    ('LDAP_DEFAULT_STORAGE', 1024000000);
                    

                    Any chance you could help with your expertise? 😃

                    nebulonN 1 Reply Last reply
                    0
                    • ultravioletU ultraviolet

                      @nebulon it does.

                      I am trying to automate the install of the LDAP details. Teedy has a database that holds the ldap details. I am struggling to get this INSERT statement into start.sh:

                      INSERT into t_config (cfg_id_c, cfg_value_c) 
                      VALUES('LDAP_ENABLED', true), ('LDAP_HOST', $CLOUDRON_LDAP_SERVER), 
                      ('LDAP_PORT', $CLOUDRON_LDAP_PORT), ('LDAP_ADMIN_DN', $CLOUDRON_LDAP_BIND_DN),
                      ('LDAP_ADMIN_PASSWORD', $CLOUDRON_LDAP_BIND_PASSWORD), 
                      ('LDAP_BASE_DN', $CLOUDRON_LDAP_BIND_PASSWORD),
                      ('LDAP_BASE_DN', $CLOUDRON_LDAP_USERS_BASE_DN),
                      ('LDAP_DEAFULT_EMAIL', 'mail@mail.com'),
                      ('LDAP_FILTER', '(objectclass=user)(|(USERNAME=%uid)(USERNAME=%uid)))'),
                      ('LDAP_DEFAULT_STORAGE', 1024000000);
                      

                      Any chance you could help with your expertise? 😃

                      nebulonN Offline
                      nebulonN Offline
                      nebulon
                      Staff
                      wrote on last edited by
                      #9

                      @ultraviolet You probably want to do an upsert here instead, since you should update the values on every app restart, in case the value have changed on the platform side. For a mysql example you can for example look at https://git.cloudron.io/cloudron/freescout-app/-/blob/master/start.sh#L87

                      ultravioletU 1 Reply Last reply
                      0
                      • nebulonN nebulon

                        @ultraviolet You probably want to do an upsert here instead, since you should update the values on every app restart, in case the value have changed on the platform side. For a mysql example you can for example look at https://git.cloudron.io/cloudron/freescout-app/-/blob/master/start.sh#L87

                        ultravioletU Offline
                        ultravioletU Offline
                        ultraviolet
                        App Dev
                        wrote on last edited by
                        #10

                        @nebulon awesome thank you 👍

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