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. Announcements
  3. Changes to WordPress apps

Changes to WordPress apps

Scheduled Pinned Locked Moved Announcements
82 Posts 10 Posters 24.7k Views 11 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 girish

    @imc67 Ah, "installed the ldap plugin used the managed ldap settings". I missed this. So you put the credentials of managed LDAP app into this existing unmanaged app? Note that this will stop working when the managed app goes away!

    imc67I Offline
    imc67I Offline
    imc67
    translator
    wrote on last edited by
    #46

    @girish huh why? These “codes” / settings are even from a managed app on another Cloudron, aren’t they the same for all?

    girishG 1 Reply Last reply
    0
    • girishG girish

      @imc67 Ah, "installed the ldap plugin used the managed ldap settings". I missed this. So you put the credentials of managed LDAP app into this existing unmanaged app? Note that this will stop working when the managed app goes away!

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

      @girish Yes, also curious to understand what you mean by @imc67's hack will stop working...at some point (that I didn't understand "when the managed app goes away" when the managed app isn't going away)?

      robiR 1 Reply Last reply
      0
      • LonkleL Lonkle

        @girish Yes, also curious to understand what you mean by @imc67's hack will stop working...at some point (that I didn't understand "when the managed app goes away" when the managed app isn't going away)?

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

        @Lonk credentials are generated per app, he copied one app's LDAP credentials.

        If that app goes away, so do the unique credentials.

        Conscious tech

        imc67I 1 Reply Last reply
        2
        • robiR robi

          @Lonk credentials are generated per app, he copied one app's LDAP credentials.

          If that app goes away, so do the unique credentials.

          imc67I Offline
          imc67I Offline
          imc67
          translator
          wrote on last edited by imc67
          #49

          @robi but there are no credentials in the settings of the LDAP plug-in at WP, only settings/code

          (I tried to upload a 'scrolled' screenshot of the settings page but it's too big)

          Schermafbeelding 2020-10-22 om 22.07.44.png Schermafbeelding 2020-10-22 om 22.07.22.png Schermafbeelding 2020-10-22 om 22.07.16.png Schermafbeelding 2020-10-22 om 22.07.59.png

          1 Reply Last reply
          0
          • imc67I imc67

            @girish huh why? These “codes” / settings are even from a managed app on another Cloudron, aren’t they the same for all?

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

            @imc67 Ah yes, I see why it works.

            From a security perspective, each app gets it's own addon credentials (database, redis, ldap etc). When app is installed/uninstalled, we create/destroy a separate username/password/database for each app. Now, Cloudron could have gone a step further and implemented a security measure that these credentials will work only when the specific app uses it. This can be done because each app has it's own IP address internally (via Docker). We haven't implemented this, and as a result, the credentials of one app (say mysql username/password/database) can be copied over to another app and it will work. But it will only work until the other app exists. When the other app is uninstalled or repaired/restored etc, the credentials are regenerated.

            In the case of LDAP addon, there is a so called "bind" password which allows apps to make LDAP queries. We generate a bind password per app. However, currently, we don't enforce this password since some apps do not support it. This WordPress LDAP plugin we use is one such case (probably one of the remaining 3-4 apps in Cloudron). Because, it doesn't use a bind username/password, all you are copying over is the LDAP server credentials (server name/port which is the same across all cloudrons). So, this happens to work now. But later when we fix the plugin to use LDAP credentials, it will stop working.

            Also, you will see inconsistency in the UI since Cloudron is not aware that LDAP is enabled for the app. You will see a different access control view than what @jdaviescoates posted. You also can't control which users have access to ldap from the Cloudron UI. In fact, I am going to guess only admins can access your WP install (since they are allowed by default).

            imc67I LonkleL 2 Replies Last reply
            4
            • girishG girish

              @imc67 Ah yes, I see why it works.

              From a security perspective, each app gets it's own addon credentials (database, redis, ldap etc). When app is installed/uninstalled, we create/destroy a separate username/password/database for each app. Now, Cloudron could have gone a step further and implemented a security measure that these credentials will work only when the specific app uses it. This can be done because each app has it's own IP address internally (via Docker). We haven't implemented this, and as a result, the credentials of one app (say mysql username/password/database) can be copied over to another app and it will work. But it will only work until the other app exists. When the other app is uninstalled or repaired/restored etc, the credentials are regenerated.

              In the case of LDAP addon, there is a so called "bind" password which allows apps to make LDAP queries. We generate a bind password per app. However, currently, we don't enforce this password since some apps do not support it. This WordPress LDAP plugin we use is one such case (probably one of the remaining 3-4 apps in Cloudron). Because, it doesn't use a bind username/password, all you are copying over is the LDAP server credentials (server name/port which is the same across all cloudrons). So, this happens to work now. But later when we fix the plugin to use LDAP credentials, it will stop working.

              Also, you will see inconsistency in the UI since Cloudron is not aware that LDAP is enabled for the app. You will see a different access control view than what @jdaviescoates posted. You also can't control which users have access to ldap from the Cloudron UI. In fact, I am going to guess only admins can access your WP install (since they are allowed by default).

              imc67I Offline
              imc67I Offline
              imc67
              translator
              wrote on last edited by
              #51

              @girish that's sad, as the expectations with "upgrading" the app to 'developer' suggested all the long awaited new functionality.

              So what's the best, step-by-step approach?

              girishG 1 Reply Last reply
              0
              • girishG girish

                @imc67 Ah yes, I see why it works.

                From a security perspective, each app gets it's own addon credentials (database, redis, ldap etc). When app is installed/uninstalled, we create/destroy a separate username/password/database for each app. Now, Cloudron could have gone a step further and implemented a security measure that these credentials will work only when the specific app uses it. This can be done because each app has it's own IP address internally (via Docker). We haven't implemented this, and as a result, the credentials of one app (say mysql username/password/database) can be copied over to another app and it will work. But it will only work until the other app exists. When the other app is uninstalled or repaired/restored etc, the credentials are regenerated.

                In the case of LDAP addon, there is a so called "bind" password which allows apps to make LDAP queries. We generate a bind password per app. However, currently, we don't enforce this password since some apps do not support it. This WordPress LDAP plugin we use is one such case (probably one of the remaining 3-4 apps in Cloudron). Because, it doesn't use a bind username/password, all you are copying over is the LDAP server credentials (server name/port which is the same across all cloudrons). So, this happens to work now. But later when we fix the plugin to use LDAP credentials, it will stop working.

                Also, you will see inconsistency in the UI since Cloudron is not aware that LDAP is enabled for the app. You will see a different access control view than what @jdaviescoates posted. You also can't control which users have access to ldap from the Cloudron UI. In fact, I am going to guess only admins can access your WP install (since they are allowed by default).

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

                @girish said in Changes to WordPress apps:

                In the case of LDAP addon, there is a so called "bind" password which allows apps to make LDAP queries. We generate a bind password per app.

                Where might I be able to find this bind password? I made up my own tiny PHP library for LDAP in the VPN Client and I did not use a bind password even though it's not required "for now". So, I would def like to fix that preemptively. 😅

                But later when we fix the plugin to use LDAP credentials, it will stop working.

                Did you write this pugin yourself or do you need to make the fix upstream with another team?

                girishG 1 Reply Last reply
                0
                • imc67I imc67

                  @girish that's sad, as the expectations with "upgrading" the app to 'developer' suggested all the long awaited new functionality.

                  So what's the best, step-by-step approach?

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

                  @imc67 said in Changes to WordPress apps:

                  @girish that's sad, as the expectations with "upgrading" the app to 'developer' suggested all the long awaited new functionality.

                  Yeah. For LDAP, we don't have a mechanism to easily to turn it on/off dynamically ie after an app installed. Let me discuss this with @nebulon to see if this is something we should do for Cloudron 6 because it's easy to do on Cloudron side (but we have to test with all the apps to check how well they cope).

                  If it's urgent, the easiest way is to just:

                  1. Backup current app. Download the backup config
                  2. Make a new install of WordPress (Developer), you can keep the existing app running.
                  3. Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                  4. Login to WP of the new app and install authLdap plugin. After doing so, Restart WordPress. Cloudron will configure the LDAP plugin on restart.
                  5. If all looks good, you can switch the location
                  LonkleL jdaviescoatesJ imc67I 3 Replies Last reply
                  2
                  • LonkleL Lonkle

                    @girish said in Changes to WordPress apps:

                    In the case of LDAP addon, there is a so called "bind" password which allows apps to make LDAP queries. We generate a bind password per app.

                    Where might I be able to find this bind password? I made up my own tiny PHP library for LDAP in the VPN Client and I did not use a bind password even though it's not required "for now". So, I would def like to fix that preemptively. 😅

                    But later when we fix the plugin to use LDAP credentials, it will stop working.

                    Did you write this pugin yourself or do you need to make the fix upstream with another team?

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

                    @Lonk said in Changes to WordPress apps:

                    Did you write this pugin yourself or do you need to make the fix upstream with another team?

                    It's authLdap. We have contributed patches in the past like this one. So, have to invest more time into adding bind password support.

                    1 Reply Last reply
                    0
                    • girishG girish

                      @imc67 said in Changes to WordPress apps:

                      @girish that's sad, as the expectations with "upgrading" the app to 'developer' suggested all the long awaited new functionality.

                      Yeah. For LDAP, we don't have a mechanism to easily to turn it on/off dynamically ie after an app installed. Let me discuss this with @nebulon to see if this is something we should do for Cloudron 6 because it's easy to do on Cloudron side (but we have to test with all the apps to check how well they cope).

                      If it's urgent, the easiest way is to just:

                      1. Backup current app. Download the backup config
                      2. Make a new install of WordPress (Developer), you can keep the existing app running.
                      3. Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                      4. Login to WP of the new app and install authLdap plugin. After doing so, Restart WordPress. Cloudron will configure the LDAP plugin on restart.
                      5. If all looks good, you can switch the location
                      LonkleL Offline
                      LonkleL Offline
                      Lonkle
                      wrote on last edited by
                      #55

                      @girish said in Changes to WordPress apps:

                      If it's urgent, the easiest way is to just:

                      Backup current app. Download the backup config
                      Make a new install of WordPress (Developer), you can keep the bet existing app running.
                      Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                      If all looks good, you can switch the location

                      That answered my question, this won't support multisite yet, but I can make some manual DB changes to still make this work and understand Cloudron better, win-win. ☺️

                      1 Reply Last reply
                      0
                      • girishG girish

                        @imc67 said in Changes to WordPress apps:

                        @girish that's sad, as the expectations with "upgrading" the app to 'developer' suggested all the long awaited new functionality.

                        Yeah. For LDAP, we don't have a mechanism to easily to turn it on/off dynamically ie after an app installed. Let me discuss this with @nebulon to see if this is something we should do for Cloudron 6 because it's easy to do on Cloudron side (but we have to test with all the apps to check how well they cope).

                        If it's urgent, the easiest way is to just:

                        1. Backup current app. Download the backup config
                        2. Make a new install of WordPress (Developer), you can keep the existing app running.
                        3. Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                        4. Login to WP of the new app and install authLdap plugin. After doing so, Restart WordPress. Cloudron will configure the LDAP plugin on restart.
                        5. If all looks good, you can switch the location
                        jdaviescoatesJ Offline
                        jdaviescoatesJ Offline
                        jdaviescoates
                        wrote on last edited by jdaviescoates
                        #56

                        @girish said in Changes to WordPress apps:

                        Backup current app. Download the backup config
                        Make a new install of WordPress (Developer), you can keep the existing app running.
                        Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                        If all looks good, you can switch the location

                        Just did that. Worked a treat!

                        I use Cloudron with Gandi & Hetzner

                        1 Reply Last reply
                        2
                        • girishG girish

                          @imc67 said in Changes to WordPress apps:

                          @girish that's sad, as the expectations with "upgrading" the app to 'developer' suggested all the long awaited new functionality.

                          Yeah. For LDAP, we don't have a mechanism to easily to turn it on/off dynamically ie after an app installed. Let me discuss this with @nebulon to see if this is something we should do for Cloudron 6 because it's easy to do on Cloudron side (but we have to test with all the apps to check how well they cope).

                          If it's urgent, the easiest way is to just:

                          1. Backup current app. Download the backup config
                          2. Make a new install of WordPress (Developer), you can keep the existing app running.
                          3. Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                          4. Login to WP of the new app and install authLdap plugin. After doing so, Restart WordPress. Cloudron will configure the LDAP plugin on restart.
                          5. If all looks good, you can switch the location
                          imc67I Offline
                          imc67I Offline
                          imc67
                          translator
                          wrote on last edited by
                          #57

                          @girish said in Changes to WordPress apps:

                          Backup current app. Download the backup config
                          Make a new install of WordPress (Developer), you can keep the existing app running.
                          Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                          If all looks good, you can switch the location

                          just did that but the authLdap plugin is not installed after restoring the backup (a backup from before I manually added it).

                          girishG 1 Reply Last reply
                          1
                          • imc67I imc67

                            @girish said in Changes to WordPress apps:

                            Backup current app. Download the backup config
                            Make a new install of WordPress (Developer), you can keep the existing app running.
                            Then import the backup config into this new app. App -> Backups -> Import. Upload the config from step 1.
                            If all looks good, you can switch the location

                            just did that but the authLdap plugin is not installed after restoring the backup (a backup from before I manually added it).

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

                            @imc67 said in Changes to WordPress apps:

                            just did that but the authLdap plugin is not installed after restoring the backup (a backup from before I manually added it).

                            You can just install it from WP Admin and restart WordPress (Cloudron will configure the plugin on restart). I will edit the instructions.

                            imc67I 1 Reply Last reply
                            2
                            • girishG girish

                              @imc67 said in Changes to WordPress apps:

                              just did that but the authLdap plugin is not installed after restoring the backup (a backup from before I manually added it).

                              You can just install it from WP Admin and restart WordPress (Cloudron will configure the plugin on restart). I will edit the instructions.

                              imc67I Offline
                              imc67I Offline
                              imc67
                              translator
                              wrote on last edited by
                              #59

                              @girish that worked, I even saw already the settings in the ldap plugin but still restarted the app to be sure.

                              one thing: I expected a ldap logged in cloudron admin also should become admin in WP (in my previous but wrong setup this was the case)?

                              LonkleL girishG 2 Replies Last reply
                              0
                              • imc67I imc67

                                @girish that worked, I even saw already the settings in the ldap plugin but still restarted the app to be sure.

                                one thing: I expected a ldap logged in cloudron admin also should become admin in WP (in my previous but wrong setup this was the case)?

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

                                @imc67 said in Changes to WordPress apps:

                                @girish that worked, I even saw already the settings in the ldap plugin but still restarted the app to be sure.

                                one thing: I expected a ldap logged in cloudron admin also should become admin in WP (in my previous but wrong setup this was the case)?

                                So the LDAP plugin "syncs" the WP user database with Cloudron's then? I wonder if it sync both ways. 🤔

                                And also, what did all of your Cloudron users import as in Wordpress with the "official" non-hack-ed way of enabling LDAP?

                                1 Reply Last reply
                                0
                                • imc67I imc67

                                  @girish that worked, I even saw already the settings in the ldap plugin but still restarted the app to be sure.

                                  one thing: I expected a ldap logged in cloudron admin also should become admin in WP (in my previous but wrong setup this was the case)?

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

                                  @imc67 said in Changes to WordPress apps:

                                  one thing: I expected a ldap logged in cloudron admin also should become admin in WP (in my previous but wrong setup this was the case)?

                                  For consistency, this behaves similar to other apps. There is a default admin user. And then the admin user has to decide who else becomes admin or not. You can go to WP users and make specific users admin. The LDAP plugin actually has a DefaultRole field in it's settings but I noticed now that the setting is not preserved across restarts. I will get this fixed shortly.

                                  I will be fixing the managed WP to behave the same way (it doesn't even have an admin user at this point...).

                                  imc67I LonkleL 2 Replies Last reply
                                  3
                                  • girishG girish

                                    @imc67 said in Changes to WordPress apps:

                                    one thing: I expected a ldap logged in cloudron admin also should become admin in WP (in my previous but wrong setup this was the case)?

                                    For consistency, this behaves similar to other apps. There is a default admin user. And then the admin user has to decide who else becomes admin or not. You can go to WP users and make specific users admin. The LDAP plugin actually has a DefaultRole field in it's settings but I noticed now that the setting is not preserved across restarts. I will get this fixed shortly.

                                    I will be fixing the managed WP to behave the same way (it doesn't even have an admin user at this point...).

                                    imc67I Offline
                                    imc67I Offline
                                    imc67
                                    translator
                                    wrote on last edited by
                                    #62

                                    @girish clear and of course that changing of user rights worked. In this restore case there is no default admin anymore (admin - admin123) but of course the backed up admin user(s).

                                    1 Reply Last reply
                                    0
                                    • girishG girish

                                      @imc67 said in Changes to WordPress apps:

                                      one thing: I expected a ldap logged in cloudron admin also should become admin in WP (in my previous but wrong setup this was the case)?

                                      For consistency, this behaves similar to other apps. There is a default admin user. And then the admin user has to decide who else becomes admin or not. You can go to WP users and make specific users admin. The LDAP plugin actually has a DefaultRole field in it's settings but I noticed now that the setting is not preserved across restarts. I will get this fixed shortly.

                                      I will be fixing the managed WP to behave the same way (it doesn't even have an admin user at this point...).

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

                                      @girish Does the LDAP plugin used sync users one way from the Cloudron User DB to the Wordpress one? Does this sync happen at intervals or as soon as a user gets created on Cloudron?

                                      girishG 1 Reply Last reply
                                      0
                                      • LonkleL Lonkle

                                        @girish Does the LDAP plugin used sync users one way from the Cloudron User DB to the Wordpress one? Does this sync happen at intervals or as soon as a user gets created on Cloudron?

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

                                        @Lonk said in Changes to WordPress apps:

                                        @girish Does the LDAP plugin used sync users one way from the Cloudron User DB to the Wordpress one? Does this sync happen at intervals or as soon as a user gets created on Cloudron?

                                        @Lonk It doesn't sync users, no. Users have to login first to be known to WordPress.

                                        LonkleL 1 Reply Last reply
                                        1
                                        • girishG girish

                                          @Lonk said in Changes to WordPress apps:

                                          @girish Does the LDAP plugin used sync users one way from the Cloudron User DB to the Wordpress one? Does this sync happen at intervals or as soon as a user gets created on Cloudron?

                                          @Lonk It doesn't sync users, no. Users have to login first to be known to WordPress.

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

                                          @girish said in Changes to WordPress apps:

                                          @Lonk It doesn't sync users, no. Users have to login first to be known to WordPress.

                                          Understood. That actually sounds like the perfect flow, I'll integrate it that way with my apps - is that how all of your LDAP integrations currently work with Cloudron store apps (no syncing, just adding LDAP users on demand with login hooks)? Just asking so I make sure to code my apps in the same way.

                                          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