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.
    • 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
                                • C Offline
                                  cjackson
                                  last edited by cjackson

                                  I had a lot of trouble getting the LDAP integration to work with Active Directory domain controllers, and i kept finding this post over and over.
                                  So i wanted to share my configuration and make it easier on others trying to do the same thing in the future.

                                  Using this config i was able to get everything working, but i found a few limitations:

                                  1. Xen Orchestra cannot find any group members where the member has the "Primary Group" attribute set.
                                  2. Only direct members of a group are recognized (nested groups don't work).
                                  3. When signing in, i have to specify "username" instead of "username@cxlab.domain.com"
                                  4. Groups are created by clicking "Synchronize LDAP groups", however users are not created until they sign into XOA the first time.
                                  5. Users are not deleted from Xen Orchestra when they are removed from the domain. (but they can no longer log in to XOA)

                                  auth-ldap (v0.10.6) - LDAP authentication plugin for XO-Server
                                  Auto-load at server start [checked]

                                  Configuration

                                  URI: ldap://domaincontroller1.cxlab.domain.com
                                  
                                    **Certificate Authorities**
                                    Check certificate [disabled]
                                    Use StartTLS [disabled]
                                    Base: DC=cxlab,DC=domain,DC=com
                                  
                                    **Credentials**
                                    dn: cxadmin@cxlab.domain.com
                                    password: ******************
                                  
                                  User filter: (sAMAccountName={{name}})
                                  ID attribute: dn
                                  
                                    **Synchronize groups**
                                    [checked] Fill information (optional)
                                    Base: CN=Users,DC=cxlab,DC=domain,DC=com
                                    Filter: (ObjectClass=group)
                                    ID attribute: dn
                                    Display name attribute: cn
                                  
                                      **Members mapping**
                                      Group attribute: member
                                      User attribute: dn
                                  

                                  1 Reply Last reply Reply Quote 0
                                  • K kagbasi-wgsdac referenced this topic on
                                  • First post
                                    Last post