XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    auth-ldap (v0.6.4) - LDAP authentication plugin for XO-Server

    Scheduled Pinned Locked Moved Xen Orchestra
    21 Posts 5 Posters 8.8k Views 3 Watching
    Loading More Posts
    • 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.
    • G Offline
      gr85z
      last edited by

      I am working on getting OpenLDAP integrated to XO
      If I use the backend test script

      /usr/local/lib/node_modules/xo-server-auth-ldap/dist/test-cli.js
      

      It connects fine and I get replies back that it is good.
      I plug the same information into the plugin and test and I get nothing back confirming it works. I try to log in at login page and get invalid credentials.
      I have restarted the service also and still not working.
      Version I am running for XO - xo-server 5.66.2 and xo-web 5.70.0
      Is there a way to take the conf file that was generated in the test-cli and import it into plugin?
      What logs do I need to look at?
      Also do I need a special group in my LDAP?

      Thanks

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hi!

        To eliminate any environment issue, can you try with an XOA?

        1 Reply Last reply Reply Quote 0
        • G Offline
          gr85z
          last edited by

          By XOA you mean the appliance?
          So my VM is running the XOA. I al trying from plugin page and not able to get any response back from test login.
          94fc27c8-4401-4a2b-8b75-0299854ade9c-image.png
          Here is configuration form the plugin page.
          Screenshot 2020-10-14 121950.png

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            By XOA I mean XOA šŸ˜‰ The virtual appliance you download/deploy from https://xen-orchestra.com/#!/xoa not your install from the sources (I'm not sure which one are you using).

            Ping @pdonias when he can take a look šŸ™‚

            1 Reply Last reply Reply Quote 0
            • G Offline
              gr85z
              last edited by

              Ok I got the versions from the About tab from the WebUI.
              I could not get the appliance to build using the the URL that you send so I followed the guide below that to install. Under the XOA tab I have current version listed as Current version: 5.50.3
              Does that make a difference?

              1 Reply Last reply Reply Quote 0
              • olivierlambertO Offline
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                @pdonias will take a look when he can šŸ™‚

                1 Reply Last reply Reply Quote 0
                • willruss1W Offline
                  willruss1
                  last edited by willruss1

                  We periodically build XO from source; and I'm seeing similar issues after updating our orchestra instance last Friday. Current versions reported through the "About" are xo-server 5.68.0 and xo-web 5.72.0, with ldap-auth v0.6.2.

                  LDAP logins are failing now where they were working before. Locally defined users within the app are unaffected. The test-cli.js seems to work as expected in regards to the actual LDAP interaction, but then fails when trying to authenticate as the returned user:

                  xo-server-screenshot.jpg

                  Hope this helps.

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    re-ping @pdonias

                    1 Reply Last reply Reply Quote 0
                    • pdoniasP Offline
                      pdonias Vates 🪐 XO Team
                      last edited by

                      Hi,

                      @willruss1, we made quite a lot of changes on the LDAP plugin, the latest version is 0.9.0. Could you update it and retry?

                      @gr85z 5.50.3 is the current "stable" version of XO. The latest changes of the LDAP plugin are still in the "latest" channel. You can change the channel on the right hand side of the updater page and then click on Upgrade. Then, the "current version" should say 5.51.1. You can then check your LDAP plugin configuration and retry.

                      Also, can you tell us about the issue you had with the deploy from https://xen-orchestra.com/#!/xoa? Did you get an error message?

                      Thanks!

                      G willruss1W 2 Replies Last reply Reply Quote 0
                      • G Offline
                        gr85z @pdonias
                        last edited by olivierlambert

                        @pdonias OK I upgraded to the latest-
                        Current version: 5.51.1

                        • node: 12.18.2
                        • npm: 4.6.1
                        • xen-orchestra-upload-ova: 0.1.3
                        • xo-server: 5.68.0
                        • xo-server-telemetry: 0.3.0
                        • xo-server-xoa: 0.10.0
                        • xo-web-free: 5.72.0
                        • xoa-cli: 0.21.1
                        • xoa-updater: 0.31.0

                        LDAP plugin still at 0.6.4
                        I install the plugin as follows -

                        npm install --global xo-server-auth-ldap
                        

                        Output was

                        /usr/local/bin/xo-server-auth-ldap -> /usr/local/lib/node_modules/xo-server-auth-ldap/dist/test-cli.js
                        /usr/local/lib
                        └── xo-server-auth-ldap@0.6.4
                        

                        LDAP test on webui still does not work.

                        In regards to the install from web I could not get it to connect to my VM even after following all the guides I could find to make sure the server was setup correctly. So I followed guide documentation which pull from git.

                        1 Reply Last reply Reply Quote 0
                        • willruss1W Offline
                          willruss1 @pdonias
                          last edited by

                          @pdonias updating was exactly the fix. Apparently past me did some hacky stuff that finally came back to bite me. There was a manually installed older version of the plugin that was interfering.

                          All is better now, for me at least.

                          pdoniasP 1 Reply Last reply Reply Quote 0
                          • pdoniasP Offline
                            pdonias Vates 🪐 XO Team
                            last edited by

                            @gr85z said in auth-ldap (v0.6.4) - LDAP authentication plugin for XO-Server:

                            So I followed guide documentation which pull from git.

                            Ok, so if you install it from the sources, don't install the plugins from NPM, use the source code from the repository instead. (we just marked them as deprecated on NPM since it could be confusing). All the plugins are in the packages folder. You can use Yarn's link feature to easily link xo-server-auth-ldap to xo-server.

                            G 2 Replies Last reply Reply Quote 0
                            • pdoniasP Offline
                              pdonias Vates 🪐 XO Team @willruss1
                              last edited by

                              @willruss1 Ok, great!

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                gr85z @pdonias
                                last edited by

                                @pdonias Tried the yarn command

                                yarn link 
                                00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'link'
                                

                                Maybe I have the source all messed up and need to start from scratch, is there a good install guide to setup server and the use the deploy page?

                                1 Reply Last reply Reply Quote 0
                                • olivierlambertO Offline
                                  olivierlambert Vates 🪐 Co-Founder CEO
                                  last edited by olivierlambert

                                  Our official doc šŸ™‚

                                  1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    gr85z @pdonias
                                    last edited by

                                    @pdonias
                                    OK so I finally figured it out and got the turnkey to work.
                                    When it was asking for server didn't realize it was asking for the XEN server. Thought it was asking for VM.
                                    Now I have it deployed and configurations from other XOA with all my hosts, pools, and VMs etc..
                                    I search on the new XOA for the xo-server-auth-ldap and couldn't find anything. Also there is no yarn.
                                    I could be missing something simple to get the plugin installed. Based on the documentation it seems like it should be there and just have to turn it on. Below are the only 2 plugins I have listed.

                                    3301aa6e-a9fd-4174-b4a7-b3022476a496-image.png

                                    Thanks

                                    olivierlambertO 1 Reply Last reply Reply Quote 0
                                    • olivierlambertO Offline
                                      olivierlambert Vates 🪐 Co-Founder CEO @gr85z
                                      last edited by

                                      You have no LDAP plugin on XOA Free. You need to register for the trial and then you'll see an update in your XOA, and plugin will appear after that.

                                      G 1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        gr85z @olivierlambert
                                        last edited by

                                        @olivierlambert does that mean when trial is up the plugin will go away? I have already used the trial.
                                        If it is only part of the paid version we are looking at doing that starting in Q1 next year.

                                        Thanks

                                        1 Reply Last reply Reply Quote 0
                                        • olivierlambertO Offline
                                          olivierlambert Vates 🪐 Co-Founder CEO
                                          last edited by

                                          That's correct. When the trial ends, you go back to XOA Free.

                                          I can extend the trial for 15 more days if you need.

                                          1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            gr85z
                                            last edited by

                                            @olivierlambert no need to extend trial , thank you though. I will put out the communication to team and see if they want to do before the beginning of the year.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post