Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42462

User on the lookup will not be found if it is not on the root of the tree

XMLWordPrintable

      This line of code

      https://github.com/jenkinsci/active-directory-plugin/blob/active-directory-2.0/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java#L339
      

      should be at very least

      new LDAPSearchBuilder(test, domainDN).subTreeScope().searchOne("(& (userPrincipalName={0})(objectCategory=user))", userPrincipalName);
      

      with the subTreeScope to be able to find the user!

            fbelzunc Félix Belzunce Arcos
            fbelzunc Félix Belzunce Arcos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: