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. Support
  3. Connecting Synology NAS to Cloudron LDAP fails

Connecting Synology NAS to Cloudron LDAP fails

Scheduled Pinned Locked Moved Unsolved Support
synologyldap
7 Posts 4 Posters 994 Views 4 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.
  • imc67I Online
    imc67I Online
    imc67
    translator
    wrote on last edited by girish
    #1

    Hi, I really would like to connect our Synology NAS (DSM 7.1.1) to our Cloudron LDAP so our Cloudron users can login to the NAS with the same credentials. That saves a lot of time and issues with user management.

    After some trial and error I got to a point where I can't solve the issue, who knows how to continue?

    In Synology DSM there is a wizard to start the connection:

    Step 1: (server IP and DNS IP's)
    Scherm­afbeelding 2022-12-22 om 09.22.26.png

    Step 2: Enter needed info, got inspiration from the Cloudorn docs
    BIND DN: cn=admin,ou=system,dc=cloudron
    Password: set in LDAP Cloudron
    BASE DN: ou=users,dc=cloudron
    Scherm­afbeelding 2022-12-22 om 09.31.49.png

    Step 3: check and join, first 3 checks succeeded but 4th one failed:
    Scherm­afbeelding 2022-12-22 om 09.32.10.png

    Details:
    Scherm­afbeelding 2022-12-22 om 09.32.22.png

    H 1 Reply Last reply
    0
    • imc67I imc67 marked this topic as a question on
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      Without being able to debug this further, for a start, the filter seems wrong. The Cloudron provided user records would have the following objectClass attribute:

      objectclass: [ 'user', 'inetorgperson', 'person' ]
      

      so use one of those three entries there. Also Cloudron has no attribute uidNumber maybe using entryuuid works there though.

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hakunamatata
        wrote on last edited by
        #3

        @imc67 were you able to figure this out?

        imc67I 1 Reply Last reply
        0
        • imc67I imc67

          Hi, I really would like to connect our Synology NAS (DSM 7.1.1) to our Cloudron LDAP so our Cloudron users can login to the NAS with the same credentials. That saves a lot of time and issues with user management.

          After some trial and error I got to a point where I can't solve the issue, who knows how to continue?

          In Synology DSM there is a wizard to start the connection:

          Step 1: (server IP and DNS IP's)
          Scherm­afbeelding 2022-12-22 om 09.22.26.png

          Step 2: Enter needed info, got inspiration from the Cloudorn docs
          BIND DN: cn=admin,ou=system,dc=cloudron
          Password: set in LDAP Cloudron
          BASE DN: ou=users,dc=cloudron
          Scherm­afbeelding 2022-12-22 om 09.31.49.png

          Step 3: check and join, first 3 checks succeeded but 4th one failed:
          Scherm­afbeelding 2022-12-22 om 09.32.10.png

          Details:
          Scherm­afbeelding 2022-12-22 om 09.32.22.png

          H Offline
          H Offline
          hakunamatata
          wrote on last edited by hakunamatata
          #4

          @imc67 said in Connecting Synology NAS to Cloudron LDAP fails:

          Scherm­afbeelding 2022-12-22 om 09.32.22.png

          I was able to make some more progress at this screenshot.

          For user profile:
          filter: (objectClass=user)
          uid: username
          uidNumber: HASH(uid)

          For group profile:
          filter: (objectClass=user)
          cn: cn
          uidNumber: HASH(uid)

          Then you have to enable CIFS plain text authentication.

          I am stuck at the final step. It is late here so will try to figure it out over the weekend.

          2216fa5d-f4b4-424c-b086-ac79b0c1c5e6-image.png

          1 Reply Last reply
          1
          • H hakunamatata

            @imc67 were you able to figure this out?

            imc67I Online
            imc67I Online
            imc67
            translator
            wrote on last edited by
            #5

            @hakunamatata said in Connecting Synology NAS to Cloudron LDAP fails:

            @imc67 were you able to figure this out?

            No I wasn’t, and in the meantime I phased out the NAS because I upgraded to a huge VPS for my Cloudron and it can fully replace the NAS.

            1 Reply Last reply
            1
            • J Offline
              J Offline
              joseph
              Staff
              wrote on last edited by
              #6

              I don't own a synology but tried searching for synology "join directory" and it produces no hits. Do you happen to have any more docs . What is in the "Details" button ?

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hakunamatata
                wrote on last edited by hakunamatata
                #7

                I think there may be an issue in the mapping between the Synology LDAP and Cloudron LDAP If you look at the first screenshot provided by imc67, we have the option to select which LDAP profile to use. If you use the standard profile, you immediately run into the issues that imc67 described. However if you change the profile to custom (see screenshot below), everything checks out fine except for the "Check server schema" which goes away if one enables CIFS plain text authentication. But then you still get stuck when the Synology tries to join the Cloudron directory.

                image.png

                image.png

                809c7691-aae3-4fc0-bfe8-cec2cc30507f-image.png

                I'm trying to find the logs on the synology to get more details.

                Here are the synology docs for how to join a Synology NAS to an external LDAP directory: https://kb.synology.com/en-me/DSM/help/DSM/AdminCenter/file_directory_service_join?version=7

                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