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
  • Brite
  • 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

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. 2FA sync via Cloudron Connector not working

2FA sync via Cloudron Connector not working

Scheduled Pinned Locked Moved Solved Support
ldap2fa
11 Posts 3 Posters 675 Views 3 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.
  • jamesJ Offline
    jamesJ Offline
    james
    Staff
    wrote on last edited by
    #2

    Hello @teiluj
    Thanks for reporting.
    It could be that the CSA remembers the 2FA status and propagates it to the CSB, thus the 2FA not needed when CSA already validated that.

    But that is an assumption. We will have to look into reproducing this.

    1 Reply Last reply
    2
    • T Online
      T Online
      Teiluj
      wrote on last edited by
      #3

      In troubleshooting the following https://forum.cloudron.io/topic/15562/2fa-sync-via-cloudron-connector-not-working?_=1780301632476 last week:

      • I enabled local 2FA on the "child" cloudron server (CSB)
      • I attempted to login on CSB using a synced user.
      • This leads CSB to ask to register for MFA (and in that instance create a passkey)
        Having completed the test (and seeing that the "synced user" did not carry the 2FA from the parent Cloudron server - CSA - but rather was forcing to create a new 2FA/passkey for the synced user), I then turned off the enabling/enforcing of 2FA on CSB.

      Right now, when this synced user (from CSA) attempt to log into CSB, username / password works fine. However he is prompted to use a passkey which only exists on CSB and which does not correspond to his MFA/passkey from CSA

      Because it is a synced user ("synced from the external LDAP directory") there is also no option to reset his local MFA/passkey.

      Not too sure how to process from here. Any suggestions?

      T 1 Reply Last reply
      2
      • T Teiluj referenced this topic on
      • jamesJ Offline
        jamesJ Offline
        james
        Staff
        wrote on last edited by
        #4

        Hello @teiluj
        I have merged the topics together since this will be related.

        Interesting, indeed.
        Since passkeys are bound to the domain, a Cloudron doing auth over another Cloudron how that should be handled is something we have to look into.
        Thank you very much for working on this and giving us more insights.

        1 Reply Last reply
        2
        • jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote on last edited by
          #5

          Hello @teiluj
          We have reproduced the issue with TOTP.
          A fix will be supplied soon.

          1 Reply Last reply
          2
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #6

            @teiluj thanks for the great report. I have fixed this now. Unfortunately, it's a series of changes, so cannot be applied easily. Fix will be part of next Cloudron release.

            1 Reply Last reply
            3
            • girishG girish has marked this topic as solved on
            • T Teiluj

              In troubleshooting the following https://forum.cloudron.io/topic/15562/2fa-sync-via-cloudron-connector-not-working?_=1780301632476 last week:

              • I enabled local 2FA on the "child" cloudron server (CSB)
              • I attempted to login on CSB using a synced user.
              • This leads CSB to ask to register for MFA (and in that instance create a passkey)
                Having completed the test (and seeing that the "synced user" did not carry the 2FA from the parent Cloudron server - CSA - but rather was forcing to create a new 2FA/passkey for the synced user), I then turned off the enabling/enforcing of 2FA on CSB.

              Right now, when this synced user (from CSA) attempt to log into CSB, username / password works fine. However he is prompted to use a passkey which only exists on CSB and which does not correspond to his MFA/passkey from CSA

              Because it is a synced user ("synced from the external LDAP directory") there is also no option to reset his local MFA/passkey.

              Not too sure how to process from here. Any suggestions?

              T Online
              T Online
              Teiluj
              wrote last edited by
              #7

              Teiluj said:

              Right now, when this synced user (from CSA) attempt to log into CSB, username / password works fine. However he is prompted to use a passkey which only exists on CSB and which does not correspond to his MFA/passkey from CSA

              Because it is a synced user ("synced from the external LDAP directory") there is also no option to reset his local MFA/passkey.

              Not too sure how to process from here. Any suggestions?

              Apologies for bringing this up again but I do not think that the fix has been released for this yet and this is now creating major challenges.

              How can I clear CSB-defined passkey for a given LDAP-synced from CSA user on CSB?

              Hopefully this makes sense. Grateful in advance for any hints/help on this.

              1 Reply Last reply
              0
              • T Online
                T Online
                Teiluj
                wrote last edited by
                #8

                What is the way to clear 2FA (including passkey) for a given user?

                If I stop the LDAP sync, clear the 2FA for the related user on CSB and restart the sync, would this get around the issue for now?

                I know that @staff are working on Cloudron 10 and I am looking forward to this, but not having a working 2FA for Cloudron synced user and OIDC enabled apps is somewhat of a security concerns of importance,I would argue.

                1 Reply Last reply
                0
                • jamesJ Offline
                  jamesJ Offline
                  james
                  Staff
                  wrote last edited by
                  #9

                  Hello @teiluj
                  The fix is included in Cloudron version 10.

                  T 1 Reply Last reply
                  0
                  • jamesJ james

                    Hello @teiluj
                    The fix is included in Cloudron version 10.

                    T Online
                    T Online
                    Teiluj
                    wrote last edited by
                    #10

                    @james said:

                    Hello @teiluj
                    The fix is included in Cloudron version 10.

                    Hi @james - The release of the fix with v10, I understood. But I am not certain you can share a date for when v10 will be out, or can you (I see this is the demo server already!)?

                    OK so for the record, the following worked to re-enable the user to access the app:
                    With a local (i.e. non-LDAP-synced) admin user on CSB

                    • Disable the LDAP sync on CSB
                    • Impersonate the impacted user on CSB
                    • While logged in CSB as the impacted user, go to profile and disable TOTP/passkey as required
                    • Logout from CSB as the impacted user
                    • Login on CSB as the local admin user
                    • Re-enable/reset the LDAP sync with CSA

                    This would have been a lot faster, less complicated if an admin user had the possibility to reset TOTP/Passkey for other users.
                    Could this be made as a feature request?

                    Something like the following would be great
                    ef6a2319-22e8-457d-b4ac-2dff9bd5d545-image.jpeg

                    1 Reply Last reply
                    2
                    • jamesJ Offline
                      jamesJ Offline
                      james
                      Staff
                      wrote last edited by
                      #11

                      Hello @teiluj
                      We are already started rolling out Cloudron 10 slowly as a pre-release update.
                      Maybe you can check if you could update your server already.

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      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