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. WordPress (Developer)
  3. Latest package with LDAP add-on

Latest package with LDAP add-on

Scheduled Pinned Locked Moved WordPress (Developer)
48 Posts 5 Posters 4.4k Views 5 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.
  • LonkleL Lonkle

    @d19dotca Glad you got it working as expected. I still want to appeal to the devs to allow email in LDAP, but we certainly don't want that to work when it shouldn't be working. Hopefully we'll get to add real LDAP email support to Wordpress (Developer) one day. ☺️

    d19dotcaD Offline
    d19dotcaD Offline
    d19dotca
    wrote on last edited by
    #33

    @Lonk Actually now I'm super confused. lol. I thought it was fine, but now I'm seeing it letting me login again with the old password, so I went to remove it, and I found out I can actually still sign in with both the old password (since it was in the database from the old managed wordpress) and even the email address. No idea why this suddenly changed again. Maybe my brain is fried, lol. I'm going to try again now and disable the AuthLDAP plugin entirely and see what's up.

    --
    Dustin Dauncey
    www.d19.ca

    1 Reply Last reply
    0
    • LonkleL Lonkle

      @d19dotca Glad you got it working as expected. I still want to appeal to the devs to allow email in LDAP, but we certainly don't want that to work when it shouldn't be working. Hopefully we'll get to add real LDAP email support to Wordpress (Developer) one day. ☺️

      d19dotcaD Offline
      d19dotcaD Offline
      d19dotca
      wrote on last edited by
      #34

      @Lonk Okay yes, I can confirm that it works even with the AuthLDAP plugin disabled, when I use my old credentials (i.e email address + password). This kind of makes sense too since it was a Managed WordPress instance so everything was local anyways and not using LDAP. But what makes no sense to me is if I've removed the password from the wp_users table for my user, why it still lets me in. 😕 Any ideas?

      --
      Dustin Dauncey
      www.d19.ca

      LonkleL 1 Reply Last reply
      0
      • d19dotcaD d19dotca

        @Lonk Okay yes, I can confirm that it works even with the AuthLDAP plugin disabled, when I use my old credentials (i.e email address + password). This kind of makes sense too since it was a Managed WordPress instance so everything was local anyways and not using LDAP. But what makes no sense to me is if I've removed the password from the wp_users table for my user, why it still lets me in. 😕 Any ideas?

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

        @d19dotca That's really odd, you literally removed the password hash from the DB in your personal user and you still can login with the LDAP plugin disabled?

        The only thing I can say for now is to make sure the password hash you deleted matches your actual user_id. Like, just a little double check there. Because that is super bizarre.

        d19dotcaD 1 Reply Last reply
        0
        • LonkleL Lonkle

          @d19dotca That's really odd, you literally removed the password hash from the DB in your personal user and you still can login with the LDAP plugin disabled?

          The only thing I can say for now is to make sure the password hash you deleted matches your actual user_id. Like, just a little double check there. Because that is super bizarre.

          d19dotcaD Offline
          d19dotcaD Offline
          d19dotca
          wrote on last edited by d19dotca
          #36

          @Lonk said in Latest package with LDAP add-on:

          you literally removed the password hash from the DB in your personal user and you still can login with the LDAP plugin disabled?

          Yeah, super strange right? Never seen this behaviour before. It shouldn't be possible.

          There's nothing in the user_pass box, and I'm the only user account in this particular website so I couldn't have messed up which user account, haha. There's only one row in that table.

          d6340c35-f7c4-41a0-ac11-b2d5acf79ed8-image.png

          759b0a3a-42c3-4f4a-a900-32ab9fbee4e0-image.png

          --
          Dustin Dauncey
          www.d19.ca

          LonkleL 1 Reply Last reply
          0
          • d19dotcaD d19dotca

            @Lonk said in Latest package with LDAP add-on:

            you literally removed the password hash from the DB in your personal user and you still can login with the LDAP plugin disabled?

            Yeah, super strange right? Never seen this behaviour before. It shouldn't be possible.

            There's nothing in the user_pass box, and I'm the only user account in this particular website so I couldn't have messed up which user account, haha. There's only one row in that table.

            d6340c35-f7c4-41a0-ac11-b2d5acf79ed8-image.png

            759b0a3a-42c3-4f4a-a900-32ab9fbee4e0-image.png

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

            @d19dotca How about this - delete the plugin. Very rarely (but totally is a thing) there are plug-in...remnants. And also, you tried incorrect passwords and incorrect usernames right? Hmm, maybe try another user on the Cloudron LDAP that isn’t you before you fully delete the plug-in to see if it’s actually still using LDAP somehow.

            d19dotcaD 1 Reply Last reply
            0
            • LonkleL Lonkle

              @d19dotca How about this - delete the plugin. Very rarely (but totally is a thing) there are plug-in...remnants. And also, you tried incorrect passwords and incorrect usernames right? Hmm, maybe try another user on the Cloudron LDAP that isn’t you before you fully delete the plug-in to see if it’s actually still using LDAP somehow.

              d19dotcaD Offline
              d19dotcaD Offline
              d19dotca
              wrote on last edited by d19dotca
              #38

              @Lonk Yeah I did, the incorrect usernames and passwords behave as expected -- they won't login. I've completely deleted the plugin and it still loads up the old credentials. It's definitely not doing LDAP because the password from before when it was Managed (since it didn't have LDAP) is completely different password. I have no idea how this is working this way. lol.

              --
              Dustin Dauncey
              www.d19.ca

              LonkleL 1 Reply Last reply
              0
              • d19dotcaD d19dotca

                @Lonk Yeah I did, the incorrect usernames and passwords behave as expected -- they won't login. I've completely deleted the plugin and it still loads up the old credentials. It's definitely not doing LDAP because the password from before when it was Managed (since it didn't have LDAP) is completely different password. I have no idea how this is working this way. lol.

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

                @d19dotca One last idea, check wp-config.php, is it pointing to the database name you edited?

                d19dotcaD 1 Reply Last reply
                0
                • LonkleL Lonkle

                  @d19dotca One last idea, check wp-config.php, is it pointing to the database name you edited?

                  d19dotcaD Offline
                  d19dotcaD Offline
                  d19dotca
                  wrote on last edited by
                  #40

                  @Lonk Good idea! Just checked though and yes indeed it's pointing to the right database, confirmed by comparing the value in wp-config with the value of show databases; in MySQL terminal.

                  --
                  Dustin Dauncey
                  www.d19.ca

                  LonkleL 1 Reply Last reply
                  0
                  • d19dotcaD d19dotca

                    @Lonk Good idea! Just checked though and yes indeed it's pointing to the right database, confirmed by comparing the value in wp-config with the value of show databases; in MySQL terminal.

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

                    @d19dotca Next idea then, weird caching issue. Can you try it in an incognito window?

                    d19dotcaD 1 Reply Last reply
                    0
                    • LonkleL Lonkle

                      @d19dotca Next idea then, weird caching issue. Can you try it in an incognito window?

                      d19dotcaD Offline
                      d19dotcaD Offline
                      d19dotca
                      wrote on last edited by d19dotca
                      #42

                      @Lonk Ah I did that before, but just tried again in case and still no-dice, it still loads fine with old credentials. I've never run into this issue before. I've seen it the opposite where two passwords would work (i.e. the one from managed and then the one with LDAP on Managed when I went from Unmanaged to Managed once), but that was solved by simply removing the password from the database. This time it's almost the opposite where it'll take the old credentials, not the new ones (if AuthLDAP is disabled anyways which is expected), even though the old credentials don't appear to be stored anywhere.

                      --
                      Dustin Dauncey
                      www.d19.ca

                      LonkleL 1 Reply Last reply
                      0
                      • d19dotcaD d19dotca

                        @Lonk Ah I did that before, but just tried again in case and still no-dice, it still loads fine with old credentials. I've never run into this issue before. I've seen it the opposite where two passwords would work (i.e. the one from managed and then the one with LDAP on Managed when I went from Unmanaged to Managed once), but that was solved by simply removing the password from the database. This time it's almost the opposite where it'll take the old credentials, not the new ones (if AuthLDAP is disabled anyways which is expected), even though the old credentials don't appear to be stored anywhere.

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

                        @d19dotca Alright, throwing spaghetti at the wall now. 😂 Clone the installation and try to login in THAT installation.

                        d19dotcaD 4 Replies Last reply
                        0
                        • LonkleL Lonkle

                          @d19dotca Alright, throwing spaghetti at the wall now. 😂 Clone the installation and try to login in THAT installation.

                          d19dotcaD Offline
                          d19dotcaD Offline
                          d19dotca
                          wrote on last edited by
                          #44

                          @Lonk haha, fair enough, I'll try that too.

                          --
                          Dustin Dauncey
                          www.d19.ca

                          1 Reply Last reply
                          0
                          • LonkleL Lonkle

                            @d19dotca Alright, throwing spaghetti at the wall now. 😂 Clone the installation and try to login in THAT installation.

                            d19dotcaD Offline
                            d19dotcaD Offline
                            d19dotca
                            wrote on last edited by
                            #45

                            @Lonk Same thing on the cloned app 😞 I'm completely out of ideas. I can't explain this, haha.

                            --
                            Dustin Dauncey
                            www.d19.ca

                            1 Reply Last reply
                            0
                            • LonkleL Lonkle

                              @d19dotca Alright, throwing spaghetti at the wall now. 😂 Clone the installation and try to login in THAT installation.

                              d19dotcaD Offline
                              d19dotcaD Offline
                              d19dotca
                              wrote on last edited by
                              #46

                              @Lonk Btw I don’t think I said it but... thank you! I appreciate the time you’ve spent trying to troubleshoot it. 🙂

                              --
                              Dustin Dauncey
                              www.d19.ca

                              1 Reply Last reply
                              1
                              • LonkleL Lonkle

                                @d19dotca Alright, throwing spaghetti at the wall now. 😂 Clone the installation and try to login in THAT installation.

                                d19dotcaD Offline
                                d19dotcaD Offline
                                d19dotca
                                wrote on last edited by
                                #47

                                @Lonk Okay I think I may have fixed it, but I'm not certain I trust it. So what I did was generate a new password in the database directly with MD5, then saved that. Then tried and couldn't login again via a private window (so I could still remain logged in elsewhere), then I removed the password again from the database, wondering if that'd let me login with the old password still again, and now it seems to be working as expected when there's no password in there that it will forbid that user from logging in locally. So it seems good now... but not sure how much I trust this, lol. Will keep testing, but I think this may be finally working the way I expect it to, via LDAP Auth only.

                                --
                                Dustin Dauncey
                                www.d19.ca

                                LonkleL 1 Reply Last reply
                                0
                                • d19dotcaD d19dotca

                                  @Lonk Okay I think I may have fixed it, but I'm not certain I trust it. So what I did was generate a new password in the database directly with MD5, then saved that. Then tried and couldn't login again via a private window (so I could still remain logged in elsewhere), then I removed the password again from the database, wondering if that'd let me login with the old password still again, and now it seems to be working as expected when there's no password in there that it will forbid that user from logging in locally. So it seems good now... but not sure how much I trust this, lol. Will keep testing, but I think this may be finally working the way I expect it to, via LDAP Auth only.

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

                                  @d19dotca Wordpress is my favorite and Cloudron is my new development passion so I’m happy to troubleshoot WP stuff to find edge cases that Cloudron may need to account for.

                                  I am very for making WP the best it can be on Cloudron. ☺️

                                  I’m happy I’ve been able to help troubleshoot with 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