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. Mastodon
  3. When using Cloudron user management non-cloudron users cannot reset password

When using Cloudron user management non-cloudron users cannot reset password

Scheduled Pinned Locked Moved Mastodon
28 Posts 6 Posters 3.9k Views 7 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.
    • jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by jdaviescoates
      #1

      @girish said in Opening Up Registration:

      Note that if you want to allow external users, it might be a good idea to install mastodon without Cloudron user management. That way the user handles of external users and the Cloudron usernames won't conflict.

      Also, I've just discovered that if you do use Cloudron user management external users can register, but they then they can't reset their password!

      When trying to reset their passwords users are just presented with this:

      Screenshot_20221113-002439_Browser.png

      Is there anyway to resolve this?

      How can I enable non-Cloudron user to be able reset their passwords? Or is it now impossible to do so given I chose Cloudron user management during installation?

      I'm really hoping I wont have to throw my whole network away and start again from scratch? (but I'm guessing perhaps I will 😢 )

      I use Cloudron with Gandi & Hetzner

      E itbeardI 2 Replies Last reply
      0
      • jdaviescoatesJ jdaviescoates

        @girish said in Opening Up Registration:

        Note that if you want to allow external users, it might be a good idea to install mastodon without Cloudron user management. That way the user handles of external users and the Cloudron usernames won't conflict.

        Also, I've just discovered that if you do use Cloudron user management external users can register, but they then they can't reset their password!

        When trying to reset their passwords users are just presented with this:

        Screenshot_20221113-002439_Browser.png

        Is there anyway to resolve this?

        How can I enable non-Cloudron user to be able reset their passwords? Or is it now impossible to do so given I chose Cloudron user management during installation?

        I'm really hoping I wont have to throw my whole network away and start again from scratch? (but I'm guessing perhaps I will 😢 )

        E Offline
        E Offline
        ericyu00
        wrote on last edited by
        #2

        @jdaviescoates I'm wondering the same thing re: change of user management, as I think I installed the same way, but for an externally-created user can only log in via email address (not username). Do you have the same issue? Hope there is a way to change this after the fact, vs. recreating the app instance (though I fear that is what may need to be done...).

        jdaviescoatesJ 1 Reply Last reply
        1
        • E ericyu00

          @jdaviescoates I'm wondering the same thing re: change of user management, as I think I installed the same way, but for an externally-created user can only log in via email address (not username). Do you have the same issue? Hope there is a way to change this after the fact, vs. recreating the app instance (though I fear that is what may need to be done...).

          jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by
          #3

          @ericyu00 said in When using Cloudron user management non-cloudron users cannot reset password:

          an externally-created user can only log in via email address (not username)

          I don't think I have that issue, uses can login fine with username (although I'll double check that), unless they've forgotten their password and then they are stuck.

          I use Cloudron with Gandi & Hetzner

          1 Reply Last reply
          0
          • jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by
            #4

            @staff be great to have some input on this - if I'm going to have to start a fresh install to resolve this, the sooner I know that, the better...

            But hopefully possible to resolve without having to do that? 🤞

            I use Cloudron with Gandi & Hetzner

            nebulonN 1 Reply Last reply
            0
            • jdaviescoatesJ jdaviescoates

              @staff be great to have some input on this - if I'm going to have to start a fresh install to resolve this, the sooner I know that, the better...

              But hopefully possible to resolve without having to do that? 🤞

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

              @jdaviescoates well besides maybe upstream or app package fixes, I am not sure what further input is required. Generally the package would aim for either leaving the user management to the app or integrate with Cloudron usermanagement, the latter should lock down user registration, so that password reset issue is a non-issue in that case. Still for completeness I am investigating whats missing there.

              jdaviescoatesJ 1 Reply Last reply
              0
              • nebulonN nebulon

                @jdaviescoates well besides maybe upstream or app package fixes, I am not sure what further input is required. Generally the package would aim for either leaving the user management to the app or integrate with Cloudron usermanagement, the latter should lock down user registration, so that password reset issue is a non-issue in that case. Still for completeness I am investigating whats missing there.

                jdaviescoatesJ Offline
                jdaviescoatesJ Offline
                jdaviescoates
                wrote on last edited by jdaviescoates
                #6

                @nebulon said in When using Cloudron user management non-cloudron users cannot reset password:

                integrate with Cloudron usermanagement, the latter should lock down user registration,

                It did not lock down registration (this is also the case with lots of other apps BTW, e.g. Rocket.Chat).

                The input I'm asking for: is it possible for me to change the user management settings of an already installed instance of Mastodon?

                Or asked another way: are there any changes that can be made to existing package so that when using Cloudron user management non-Cloudron users can still reset their passwords? (at this point wouldn't even care if this would break things for Cloudron users)

                Basically: is there anything I can do to get my existing instance of Mastodon I've installed working correctly so that my non-Cloudron users can reset their passwords, or do I need to throw the whole thing away and start again from scratch? (which would no doubt be very annoying for my users who I guess will then loose everything they've done 😞 )

                I use Cloudron with Gandi & Hetzner

                nebulonN 1 Reply Last reply
                0
                • jdaviescoatesJ jdaviescoates

                  @nebulon said in When using Cloudron user management non-cloudron users cannot reset password:

                  integrate with Cloudron usermanagement, the latter should lock down user registration,

                  It did not lock down registration (this is also the case with lots of other apps BTW, e.g. Rocket.Chat).

                  The input I'm asking for: is it possible for me to change the user management settings of an already installed instance of Mastodon?

                  Or asked another way: are there any changes that can be made to existing package so that when using Cloudron user management non-Cloudron users can still reset their passwords? (at this point wouldn't even care if this would break things for Cloudron users)

                  Basically: is there anything I can do to get my existing instance of Mastodon I've installed working correctly so that my non-Cloudron users can reset their passwords, or do I need to throw the whole thing away and start again from scratch? (which would no doubt be very annoying for my users who I guess will then loose everything they've done 😞 )

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

                  @jdaviescoates as with any other app on Cloudron, it is not supported to change the usermanagement option later. We have thought of adding that, but it also creates various edge-cases to be dealt with and generally the demand for this was not very high in the past.

                  For the password reset issue, I so far suspect that this is an upstream bug or simply an unhandled case, but I still need to further debug the app for this, those app internals are not really our expertise of course.

                  jdaviescoatesJ 2 Replies Last reply
                  1
                  • nebulonN nebulon

                    @jdaviescoates as with any other app on Cloudron, it is not supported to change the usermanagement option later. We have thought of adding that, but it also creates various edge-cases to be dealt with and generally the demand for this was not very high in the past.

                    For the password reset issue, I so far suspect that this is an upstream bug or simply an unhandled case, but I still need to further debug the app for this, those app internals are not really our expertise of course.

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by
                    #8

                    @nebulon said in When using Cloudron user management non-cloudron users cannot reset password:

                    For the password reset issue, I so far suspect that this is an upstream bug

                    I don't get why you think that when it's obviously caused by a change you make to the package when Cloudron user management is enabled, no?

                    I use Cloudron with Gandi & Hetzner

                    nebulonN 1 Reply Last reply
                    0
                    • jdaviescoatesJ jdaviescoates

                      @nebulon said in When using Cloudron user management non-cloudron users cannot reset password:

                      For the password reset issue, I so far suspect that this is an upstream bug

                      I don't get why you think that when it's obviously caused by a change you make to the package when Cloudron user management is enabled, no?

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

                      @jdaviescoates it is far from obvious, as we do not make any special changes besides enabling LDAP and set one other setting to disable external account creation, which apparently is not supported upstream or the setting has changed.

                      In our experience changing auth handlers, often has unexpected side-effects in apps, which are not easy to understand or pinpoint unless one is an expert of the app itself.

                      jdaviescoatesJ 2 Replies Last reply
                      1
                      • nebulonN nebulon

                        @jdaviescoates as with any other app on Cloudron, it is not supported to change the usermanagement option later. We have thought of adding that, but it also creates various edge-cases to be dealt with and generally the demand for this was not very high in the past.

                        For the password reset issue, I so far suspect that this is an upstream bug or simply an unhandled case, but I still need to further debug the app for this, those app internals are not really our expertise of course.

                        jdaviescoatesJ Offline
                        jdaviescoatesJ Offline
                        jdaviescoates
                        wrote on last edited by
                        #10

                        @nebulon said in When using Cloudron user management non-cloudron users cannot reset password:

                        is not supported to change the usermanagement option later. We have thought of adding that, but it also creates various edge-cases to be dealt with and generally the demand for this was not very high in the past.

                        That's what I thought 😞

                        I've seen lots of people hit issues due to this though, so I think there is probably a fair bit of demand.

                        So, sounds like I'm going to have to start again with https://safejust.space and lose the 237 followers @DoughnutEconomics already has on there 😢

                        I use Cloudron with Gandi & Hetzner

                        E 1 Reply Last reply
                        0
                        • nebulonN nebulon

                          @jdaviescoates it is far from obvious, as we do not make any special changes besides enabling LDAP and set one other setting to disable external account creation, which apparently is not supported upstream or the setting has changed.

                          In our experience changing auth handlers, often has unexpected side-effects in apps, which are not easy to understand or pinpoint unless one is an expert of the app itself.

                          jdaviescoatesJ Offline
                          jdaviescoatesJ Offline
                          jdaviescoates
                          wrote on last edited by jdaviescoates
                          #11

                          @nebulon said in When using Cloudron user management non-cloudron users cannot reset password:

                          we do not make any special changes besides enabling LDAP

                          OK, in which case, what I mean is evidently just enabling LDAP is what is causes this issue.

                          I wonder if there is anyway I can un-enable LDAP in an app initially installed with Cloudron user management enabled?

                          I use Cloudron with Gandi & Hetzner

                          1 Reply Last reply
                          0
                          • jdaviescoatesJ Offline
                            jdaviescoatesJ Offline
                            jdaviescoates
                            wrote on last edited by
                            #12

                            Just for good measure I've created an issue about this over on Mastodon too

                            https://github.com/mastodon/mastodon/issues/20655

                            I use Cloudron with Gandi & Hetzner

                            1 Reply Last reply
                            0
                            • nebulonN nebulon

                              @jdaviescoates it is far from obvious, as we do not make any special changes besides enabling LDAP and set one other setting to disable external account creation, which apparently is not supported upstream or the setting has changed.

                              In our experience changing auth handlers, often has unexpected side-effects in apps, which are not easy to understand or pinpoint unless one is an expert of the app itself.

                              jdaviescoatesJ Offline
                              jdaviescoatesJ Offline
                              jdaviescoates
                              wrote on last edited by
                              #13

                              @nebulon said in When using Cloudron user management non-cloudron users cannot reset password:

                              we do not make any special changes besides enabling LDAP and set one other setting to disable external account creation, which apparently is not supported upstream or the setting has changed.

                              There is definitely an option within Mastondon to close registrations. I can't remember for sure (would have to reinstall to double check), but I'm pretty sure even though I chose Cloudron user management registrations were open already.

                              I use Cloudron with Gandi & Hetzner

                              1 Reply Last reply
                              0
                              • jdaviescoatesJ jdaviescoates

                                @nebulon said in When using Cloudron user management non-cloudron users cannot reset password:

                                is not supported to change the usermanagement option later. We have thought of adding that, but it also creates various edge-cases to be dealt with and generally the demand for this was not very high in the past.

                                That's what I thought 😞

                                I've seen lots of people hit issues due to this though, so I think there is probably a fair bit of demand.

                                So, sounds like I'm going to have to start again with https://safejust.space and lose the 237 followers @DoughnutEconomics already has on there 😢

                                E Offline
                                E Offline
                                ericyu00
                                wrote on last edited by
                                #14

                                @jdaviescoates Sounds like I'm going to need to do the same thing, i.e. reinstall without integrated LDAP. Re: losing followers, wonder if you can migrate your account to another server, re-build your Mastodon app, then migrate back?

                                jdaviescoatesJ 1 Reply Last reply
                                1
                                • E ericyu00

                                  @jdaviescoates Sounds like I'm going to need to do the same thing, i.e. reinstall without integrated LDAP. Re: losing followers, wonder if you can migrate your account to another server, re-build your Mastodon app, then migrate back?

                                  jdaviescoatesJ Offline
                                  jdaviescoatesJ Offline
                                  jdaviescoates
                                  wrote on last edited by
                                  #15

                                  @ericyu00 said in When using Cloudron user management non-cloudron users cannot reset password:

                                  wonder if you can migrate your account to another server, re-build your Mastodon app, then migrate back?

                                  yeah, thanks, I'd thought about that too and may try it.. shall investigate...

                                  I use Cloudron with Gandi & Hetzner

                                  jdaviescoatesJ 1 Reply Last reply
                                  0
                                  • jdaviescoatesJ jdaviescoates

                                    @ericyu00 said in When using Cloudron user management non-cloudron users cannot reset password:

                                    wonder if you can migrate your account to another server, re-build your Mastodon app, then migrate back?

                                    yeah, thanks, I'd thought about that too and may try it.. shall investigate...

                                    jdaviescoatesJ Offline
                                    jdaviescoatesJ Offline
                                    jdaviescoates
                                    wrote on last edited by
                                    #16

                                    @jdaviescoates said in When using Cloudron user management non-cloudron users cannot reset password:

                                    @ericyu00 said in When using Cloudron user management non-cloudron users cannot reset password:

                                    wonder if you can migrate your account to another server, re-build your Mastodon app, then migrate back?

                                    yeah, thanks, I'd thought about that too and may try it.. shall investigate...

                                    Ah, I'm not sure that'd work because:

                                    "There is also a very heavy cooldown period in which you cannot migrate again, so be very careful before using this option!"

                                    From https://docs.joinmastodon.org/user/moving/

                                    Frustratingly doesn't say how long that period is though.

                                    I use Cloudron with Gandi & Hetzner

                                    E 1 Reply Last reply
                                    0
                                    • girishG Do not disturb
                                      girishG Do not disturb
                                      girish
                                      Staff
                                      wrote on last edited by
                                      #17

                                      Just tested this now. non-cloudron users are able to get email in my instance atleast. Testing it a bit more.

                                      45d9ef22-d82c-4718-b840-021b84e95169-image.png

                                      jdaviescoatesJ 1 Reply Last reply
                                      0
                                      • jdaviescoatesJ jdaviescoates

                                        @jdaviescoates said in When using Cloudron user management non-cloudron users cannot reset password:

                                        @ericyu00 said in When using Cloudron user management non-cloudron users cannot reset password:

                                        wonder if you can migrate your account to another server, re-build your Mastodon app, then migrate back?

                                        yeah, thanks, I'd thought about that too and may try it.. shall investigate...

                                        Ah, I'm not sure that'd work because:

                                        "There is also a very heavy cooldown period in which you cannot migrate again, so be very careful before using this option!"

                                        From https://docs.joinmastodon.org/user/moving/

                                        Frustratingly doesn't say how long that period is though.

                                        E Offline
                                        E Offline
                                        ericyu00
                                        wrote on last edited by
                                        #18

                                        @jdaviescoates Hmmm, yeah you're right, that's not ideal. Looks like some places indicate it's a 7-day cooldown period, so would not really work too well unless you want to stay in the new home for a week, then migrate back... Also indicates "Your toots will not be moved, due to technical limitations." - not sure if that's a blocker as well. Wonder if you can export your entire account, rebuild the Cloudron app, then restore the account with the new user management setting applied? I'm about to nuke and rebuild my app, but it was a fresh instance so not losing anything of value... Good luck mate!

                                        1 Reply Last reply
                                        1
                                        • girishG Do not disturb
                                          girishG Do not disturb
                                          girish
                                          Staff
                                          wrote on last edited by
                                          #19

                                          This one took a bit of time to narrow. It seems there are two things: password recovery and confirmation instructions. The former works. The latter doesn't work after sign up. Maybe that's expected.

                                          Notice there are two separate links below:

                                          1c6dd526-0859-4c14-a642-fd9cc05deb40-image.png

                                          jdaviescoatesJ 1 Reply Last reply
                                          0
                                          • girishG Do not disturb
                                            girishG Do not disturb
                                            girish
                                            Staff
                                            wrote on last edited by
                                            #20

                                            @ericyu00 @jdaviescoates I left a note in the github issue. It seems that LDAP login (and other login methods like pam login) are incompatible with external registration.

                                            I will put this in Cloudron's post install message as well.

                                            robiR 1 Reply Last reply
                                            1
                                            • girishG girish referenced this 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