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.
    • 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