Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Configure LDAP on BuildMaster on Linux

    Scheduled Pinned Locked Moved Support
    6 Posts 3 Posters 20 Views
    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.
    • M Offline
      marc.ledent_9164
      last edited by

      Hi all,

      I try to configure LDAP (Active Directory) in BuildMaster on Linux platform (OpenShift)

      I tried to follow the doc but with no success.

      The problem is there is nowhere to find how to specify user DN/password. Therefore I cannot figure out how BuildMaster is querying the LDAP server.

      Any help would be welcome!

      Thanks in advance,
      Marc

      1 Reply Last reply Reply Quote 0
      • rhessingerR Offline
        rhessinger inedo-engineer
        last edited by

        Hi @marc-ledent_9164,

        To specify a username/password to use to communicate with you domain, need to:

        1. Add a Username/Password secure credential in the Administration -> Secure Credentials page and make note of the name you used (ex: ADDomainCreds)
        2. Navigate to Administration -> Change User Directory (LDAP)
          1. Click "Advanced"
        3. Find your Active Directory provider and click the name (most commonly named Active Directory (LDAP))
        4. Change the "Search Mode" to Specific List
        5. In the "Domains to search" enter your domain name and secure credentials name in the format of <DOMAIN_SUFFIX>,<CREDENTIAL_NAME> (ex: kramerica.local,ADDomainCreds)
        6. In the "Domain Controller Host", enter the host for your domain controller. Normally the suffix will work (ex: kramerica.local), but if not, enter the IP address of your domain controller.
        7. Click "Save"
        8. Restart your container(s)

        Please let me know if that works for you.

        Thanks,
        Rich

        Products Engineer, Inedo

        1 Reply Last reply Reply Quote 0
        • M Offline
          marc.ledent_9164
          last edited by marc.ledent_9164

          Hi Rich,

          It is not clear how the domain suffix should be entered...

          Our binddn is in the form:
          CN:OurID,OU=Users,OU=gcloud,DC=gcloud,DC=dom

          I created a credential (say LDAPuser) with this binddn as user and the corresponding password.

          What should I put in the "Domain to search" box?

          I tried "gcloud.dom,LDAPuser", but that is not working... It says:

          [Debug] Search term: someuser
          [Debug] Filter string: (&(|(objectCategory=user)(objectCategory=group))(|(userPrincipalName=someuser*)(sAMAccountName=someuser*)(name=someuser*)(displayName=someuser*)))
          [Debug] Building search root paths for search mode SpecificDomains...
          [Debug] Searching domain: CN=OurID,OU=users,OU=gcloud,DC=gcloud,DC=dom@gcloud.dom
          

          It doesn't work because of the @gcloud.dom...

          1 Reply Last reply Reply Quote 0
          • rhessingerR Offline
            rhessinger inedo-engineer
            last edited by

            Hi @marc-ledent_9164,

            You will want to specify the "Domain to Search" as gcloud.dom,LDAPuser. For the secure credential, you will want to use just a username and password, unless the user logs in with a different suffix other than @gcloud.dom.

            I think the issue is with the binddn. BuildMaster will connect to LADP/AD using the root OU. If you require a CN and OU to be specified, that will not work out of the box. Are those needed to connect to your domain controller?

            Thanks,
            Rich

            Products Engineer, Inedo

            1 Reply Last reply Reply Quote 0
            • M Offline
              marc.ledent_9164
              last edited by

              @rhessinger said in Configure LDAP on BuildMaster on Linux:

              f you require a CN a

              Hi Rich,

              To log in our AD, we are using a binddn (ldapsearch -D "binddn" ) of the form "CN=OurID,OU=users,OU=gcloud,DC=gcloud,DC=dom", tere is no @<something> (i.e. @gcloud.dom) in suffix.

              atrippA 1 Reply Last reply Reply Quote 0
              • atrippA Offline
                atripp inedo-engineer @marc.ledent_9164
                last edited by

                Hi @marc-ledent_9164 ,

                This isn't something that our LDAP/AD integration supports on Linux at this time. It's possible using the Windows-version, which has an LDAP integration that uses different libraries (that only work on Windows).

                We do plan on rewriting the LDAP/AD integration with a different library, as to allow this level of customization, but it's not something we can do right away. It'll be later this year.

                Cheers,
                Alana

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post
                Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation