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 sync in Nextcloud

LDAP sync in Nextcloud

Scheduled Pinned Locked Moved Nextcloud
nextcloud
7 Posts 2 Posters 4.6k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by girish
    #1

    I'm a complete newbie with Cloudron, so please excuse me if I'm missing something obvious: I've installed the Nextcloud 18, using Cloudron users. after that I was able to see my demo LDAP user inside the Nextcloud. But when I create another user in Cloudron, I can't see it in the Nextcloud. I've tried to use its LDAP debugging tools - everything seems to be working, but new user and group aren't found.

    What am I missing?

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

      @miloskroulik My understanding is that LDAP sync in nextcloud takes around 10 mins for the user to reflect. If the user logs into nextcloud, it should start reflecting immediately.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        I've just tried that again, the user is still not seen by the Nextcloud. So the only option is user logging into Nextcloud?

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @miloskroulik In some forums for OC, I have seen an occ command that one can run manually - https://central.owncloud.org/t/oc10-0-10-ldap-integration-and-users-sync/17048 . I am going to try this now and see if it works in nextcloud.

          1 Reply Last reply
          0
          • girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #5

            @miloskroulik OK, found it. Try this in the web terminal of the nextcloud app.

            sudo -u www-data php -f /app/code/occ ldap:check-user --update <username>
            

            I find that the sync happens sometimes but sometimes not. There seems to be no clear docs on how to set a sync interval.

            ? 1 Reply Last reply
            0
            • girishG girish

              @miloskroulik OK, found it. Try this in the web terminal of the nextcloud app.

              sudo -u www-data php -f /app/code/occ ldap:check-user --update <username>
              

              I find that the sync happens sometimes but sometimes not. There seems to be no clear docs on how to set a sync interval.

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              @girish said in LDAP sync in Nextcloud:

              sudo -u www-data php -f /app/code/occ ldap:check-user --update

              Thanks, unfortunately, it didn't help. First of all, while this might work, the fact that it requires a username of a user means that I can't set up CRON command to sync users easily.

              But I also wasn't able to make it work when using email address of user as a username (I didn't find a way to specify separate username), it simply fails with The given user is not a recognized LDAP user. Which probably makes sense, because sudo -u www-data php -f /app/code/occ help ldap:check-user says that the parameter should be the user name as used in Nextcloud so it looks like it's intended to resync users that are already synced to Nextcloud.

              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #7

                @miloskroulik Might be best to take this up in the nextcloud forum. Atleast, I can't find any docs on when the syncing happens and how it can be triggered manually.

                The --update <username> did end up doing a proper ldap search in my installation (as seen in the /home/yellowtent/platformdata/logs/box.log). I had run ldap:list (or maybe it was ldap:search, i forget) previously and it did not list the user. After the update, it listed the user.

                1 Reply Last reply
                1
                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