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. Nextcloud LDAP server not accepting Cloudron LDAP credentials Linode

Nextcloud LDAP server not accepting Cloudron LDAP credentials Linode

Scheduled Pinned Locked Moved Nextcloud
15 Posts 5 Posters 2.3k Views 6 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.
  • girishG girish

    @mycc Just to double check - so Cloudron and Nextcloud are installed on separate servers, correct?

    M Offline
    M Offline
    mycc
    wrote on last edited by
    #4

    @girish No. I have Nextcloud deployed as a Cloudron app on the same server. I do have a separate nextcloud server on a different server as Cloudron with the same problem.

    girishG 1 Reply Last reply
    0
    • BrutalBirdieB BrutalBirdie

      @mycc In Cloudron you need to white list the targets IP. Did you do that?

      M Offline
      M Offline
      mycc
      wrote on last edited by
      #5

      @BrutalBirdie I white listed the Cloudron's IP address under the "Restrict Access" field in the Directory Server. Is there another location where I need to white list an IP address?

      1 Reply Last reply
      0
      • M mycc

        Hello,

        I am having some errors setting up a Nextcloud server doing user management with LDAP.

        I configured my LDAP settings in Cloudron as follows:

        CLOUDRON

        Server URL

        ldaps://[subdomain.domain]:636 (I removed the domain for privacy)
        All LDAP queries have to be authenticated with this secret and the user DN cn=admin,ou=system,dc=cloudron

        Bind password: (I selected a random 32 character string)

        Restricted Access: I have the IP4 address for my Linode Server.

        NEXTCLOUD

        Here is a screenshot from Nextcloud (I removed my domain for privacy).

        Screenshot from 2023-04-05 11-46-34.png

        When I click "Save Credentials" I receive a "Configuration incomplete" error.

        When I click "Test Base DN" I receive the following errors:
        Configuration incorrect
        The Base DN appears to be wrong
        Lost connection to LDAP server

        Am I inputting the wrong information for the credentials and Base DN? Thank you.

        M Offline
        M Offline
        mycc
        wrote on last edited by
        #6

        @mycc I tried making my base
        cn=users, dc=[mydomain without .com],dc=[my subdomain]
        This is also giving me errors.

        I apologize, I am very new to ldap provisioning and might be making a trivial error.

        1 Reply Last reply
        0
        • M mycc

          @girish No. I have Nextcloud deployed as a Cloudron app on the same server. I do have a separate nextcloud server on a different server as Cloudron with the same problem.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #7

          @mycc said in Nextcloud LDAP server not accepting Cloudron LDAP credentials Linode:

          @girish No. I have Nextcloud deployed as a Cloudron app on the same server. I do have a separate nextcloud server on a different server as Cloudron with the same problem.

          If the app is on Cloudron, you don't need to do any of this. Setting up LDAP/auth with Cloudron is automatic and part of Cloudron packaging. All you have to do is:

          • Install nextcloud. When installing, you get the choice of installing with or without Cloudron user management. Select authentication against the Cloudron directory.
          • Login with Cloudron credentials.

          Did you do the above already? Did it not work for some reason?

          (BTW, for the current app, if you just restart the app, the package re-configures LDAP on every start up. So, maybe you can just restart the app and try to login with Cloudron credentials.)

          M osoboO 2 Replies Last reply
          1
          • girishG girish

            @mycc said in Nextcloud LDAP server not accepting Cloudron LDAP credentials Linode:

            @girish No. I have Nextcloud deployed as a Cloudron app on the same server. I do have a separate nextcloud server on a different server as Cloudron with the same problem.

            If the app is on Cloudron, you don't need to do any of this. Setting up LDAP/auth with Cloudron is automatic and part of Cloudron packaging. All you have to do is:

            • Install nextcloud. When installing, you get the choice of installing with or without Cloudron user management. Select authentication against the Cloudron directory.
            • Login with Cloudron credentials.

            Did you do the above already? Did it not work for some reason?

            (BTW, for the current app, if you just restart the app, the package re-configures LDAP on every start up. So, maybe you can just restart the app and try to login with Cloudron credentials.)

            M Offline
            M Offline
            mycc
            wrote on last edited by mycc
            #8

            @girish Yes this solution worked for the Nextcloud server provisioned through Cloudron. However, I would also like to use Cloudron as a user management solution for Nextcloud's on different servers. I copied the pre-populated ldap settings that populated on the Cloudron's Nextcloud after restart.

            I tried copying them to an external Nextcloud server. I did add both IP addresses to the white list.

            The left is the ldap for the Cloudron Nextcloud server. The right is a separate server running Nextcloud.

            Screenshot from 2023-04-06 08-47-55.png

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

              So the exposed LDAP server uses different settings. The apps on Cloudron will get their own credentials and local access to LDAP. So an externally run Nextcloud has to have different configs. Have you seen https://docs.cloudron.io/user-management/#directory-server already?

              M 1 Reply Last reply
              1
              • nebulonN nebulon

                So the exposed LDAP server uses different settings. The apps on Cloudron will get their own credentials and local access to LDAP. So an externally run Nextcloud has to have different configs. Have you seen https://docs.cloudron.io/user-management/#directory-server already?

                M Offline
                M Offline
                mycc
                wrote on last edited by
                #10

                @nebulon Thank you. I followed the guidance in this post before but it still gave me problems.

                I selected my own secret and loaded the credentials.

                Here is a screenshot of my results.
                Screenshot from 2023-04-06 13-30-31.png
                Screenshot from 2023-04-06 13-28-41.png

                For user DN cn=admin,ou=system,dc=cloudron

                For Base DN I used:
                dc=[sub domain]
                dc=[domain]
                dc=com (my domain ends in .com)

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

                  From the two shown error bubbles in your screenshot, it may seem that nextcloud can't even connect to the server in the first place. Can you double check the IP in the allowlist there? Also do you see any further details in the nextcloud logs about the connection attempt?

                  M 1 Reply Last reply
                  0
                  • nebulonN nebulon

                    From the two shown error bubbles in your screenshot, it may seem that nextcloud can't even connect to the server in the first place. Can you double check the IP in the allowlist there? Also do you see any further details in the nextcloud logs about the connection attempt?

                    M Offline
                    M Offline
                    mycc
                    wrote on last edited by
                    #12

                    @nebulon I went ahead and SSHed into my the server running my Nextcloud and performed an ldapsearch. It is connecting to the server but something is going wrong in Nextcloud or my inputs into the ldap fields in Nextcloud are incorrect.
                    I verified the server IP address was correct.

                    Here is a screenshot of the results of that ldap search.

                    Screenshot from 2023-04-07 20-39-07.png

                    1 Reply Last reply
                    0
                    • girishG girish

                      @mycc said in Nextcloud LDAP server not accepting Cloudron LDAP credentials Linode:

                      @girish No. I have Nextcloud deployed as a Cloudron app on the same server. I do have a separate nextcloud server on a different server as Cloudron with the same problem.

                      If the app is on Cloudron, you don't need to do any of this. Setting up LDAP/auth with Cloudron is automatic and part of Cloudron packaging. All you have to do is:

                      • Install nextcloud. When installing, you get the choice of installing with or without Cloudron user management. Select authentication against the Cloudron directory.
                      • Login with Cloudron credentials.

                      Did you do the above already? Did it not work for some reason?

                      (BTW, for the current app, if you just restart the app, the package re-configures LDAP on every start up. So, maybe you can just restart the app and try to login with Cloudron credentials.)

                      osoboO Offline
                      osoboO Offline
                      osobo
                      wrote on last edited by
                      #13

                      @girish said in Nextcloud LDAP server not accepting Cloudron LDAP credentials Linode:

                      If the app is on Cloudron, you don't need to do any of this. Setting up LDAP/auth with Cloudron is automatic and part of Cloudron packaging. All you have to do is:

                      Install nextcloud. When installing, you get the choice of installing with or without Cloudron user management. Select authentication against the Cloudron directory.
                      Login with Cloudron credentials.

                      Hello @girish. I'm trying to setup Cloudron LDAP/auth for a Nextcloud app installed on Cloudron (on the same server). But the Nextcloud app was not initially installed with Cloudron user management. Can I change this now or I need to re-install NextCloud completely ? Thanks for your support.

                      girishG 1 Reply Last reply
                      1
                      • osoboO osobo

                        @girish said in Nextcloud LDAP server not accepting Cloudron LDAP credentials Linode:

                        If the app is on Cloudron, you don't need to do any of this. Setting up LDAP/auth with Cloudron is automatic and part of Cloudron packaging. All you have to do is:

                        Install nextcloud. When installing, you get the choice of installing with or without Cloudron user management. Select authentication against the Cloudron directory.
                        Login with Cloudron credentials.

                        Hello @girish. I'm trying to setup Cloudron LDAP/auth for a Nextcloud app installed on Cloudron (on the same server). But the Nextcloud app was not initially installed with Cloudron user management. Can I change this now or I need to re-install NextCloud completely ? Thanks for your support.

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #14

                        @osobo yes, on Cloudron, you cannot change the user management after installation. It's best to re-install from scratch . It's quite complicated and very app specific to migrate existing users to LDAP and vice-versa.

                        osoboO 1 Reply Last reply
                        1
                        • girishG girish

                          @osobo yes, on Cloudron, you cannot change the user management after installation. It's best to re-install from scratch . It's quite complicated and very app specific to migrate existing users to LDAP and vice-versa.

                          osoboO Offline
                          osoboO Offline
                          osobo
                          wrote on last edited by
                          #15

                          @girish Thank you. Well noted. I will re-instal it then.

                          PS: In my opinion, it would be worth highlighting this point on the installation screen of the application, as it is a fairly definitive choice.

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