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. Nextcloud
  3. LDAP user cleanup does not work

LDAP user cleanup does not work

Scheduled Pinned Locked Moved Nextcloud
5 Posts 2 Posters 803 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.
    • David 0D Offline
      David 0D Offline
      David 0
      wrote on last edited by
      #1

      Hi there,

      before deploying, I wanted to test out Nextcloud on my Cloudron server. Therefore, I've added some demo accounts (Cloudron users).

      After managing getting all groups from Cloudron into Nextcloud, I deleted those demo users from Cloudron. Those Users still are visible in the Nextcloud address book.

      I've added

        'ldapUserCleanupInterval' => 51,
      

      to the config.php, but all those users still hang around. Is there any other way to delete those users?

      Best
      David

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

        If your Nextcloud instance is still configured to use LDAP via Cloudron, then those users will get synced into Nextcloud again and again. If you want to disconnect that, you have to install a fresh Nextcloud instance without Cloudron SSO enabled, then restore a backup from the old Nextcloud Cloudron instance. Not 100% sure what Nextcloud then does with those users if the LDAP mapping breaks, but it should treat them as local users.

        1 Reply Last reply
        0
        • David 0D Offline
          David 0D Offline
          David 0
          wrote on last edited by David 0
          #3

          I may not have been clear, my mistake:

          1. I've created users in Cloudron for testing purposes.
          2. Nextcloud is connected to Cloudron via LDAP, so every new Cloudron user can use the Nextcloud (worked.)
          3. I've deleted the Cloudron demo users.
          4. In the adminpanel "users" on Nextcloud, those demo accounts are missing (which is correct.)

          But: All those demo accounts still appear in the contacts app. How do I delete them?

          (This might not especailly be a Cloudron-related question, so I will look into this in the Nextcloud forums as well...)

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

            ah! well this is Nextcloud internal handling and generally those apps are not great with dealing with changing user/auth backends on the fly 😕

            1 Reply Last reply
            0
            • David 0D Offline
              David 0D Offline
              David 0
              wrote on last edited by
              #5

              meh.

              but thanks for helping me find the guilty one 😉

              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