• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • ldap-plugin
    • None
    • Jenkins 2.361.4
      LDAP Plugin Version 2.12

      We are not able to connect to Active Directory service. We have tried all configurations possible with no success.

      Server Configuration
      ldap://192.168.0.250:389
      ldap://192.168.0.250
      192.168.0.250

      Manager DN
      cn=config,ou=dpto_ti,ou=Administracao,ou=Usuarios,dc=matriz,dc=jaime,dc=com,dc=br

      root DN
      dc=matriz,dc=jaime,dc=com,dc=br

      LDAP User Search
      ou=Usuarios,dc=matriz,dc=jaime,dc=com,dc=br

      LDAP Group Search
      ou=Grupos,dc=matriz,dc=jaime,dc=com,dc=br

      Error

      Error while serving http://jenkins.jaimeadm.com/manage/descriptorByName/hudson.security.LDAPSecurityRealm/validate java.lang.NullPointerException at hudson.security.LDAPSecurityRealm$DescriptorImpl.validate(LDAPSecurityRealm.java:1594)

      ...

      Caught unhandled exception with ID f472d017-e2ab-43b1-95bd-d353c8dba84c java.lang.NullPointerException at hudson.security.LDAPSecurityRealm$DescriptorImpl.validate(LDAPSecurityRealm.java:1594)

          [JENKINS-70095] Active Directory - LDAP error

          Stanton added a comment - - edited

          Have the same issue,
          Error while serving http://10.49.165.70/jenkins/manage/descriptorByName/hudson.security.LDAPSecurityRealm/validate
          java.lang.NullPointerException at hudson.security.LDAPSecurityRealm$DescriptorImpl.validate(LDAPSecurityRealm.java:1594)
          at hudson.security.LDAPSecurityRealm$DescriptorImpl.doValidate(LDAPSecurityRealm.java:1549)
          at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
          at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397)
          Caused: java.lang.reflect.InvocationTargetException

          Jenkins 2.375.1
          openjdk version "11.0.17" 2022-10-18 LTS
          LDAP PluginVersion2.12

          ldapsearch succesfully connects:

          ldapsearch -v -LLL -D 'alpha\svc_jenkins' -W  -h alpha.int.dbk.ncr.com -b "DC=alpha,DC=int,DC=dbk,DC=ncr,DC=com"

          ldap_initialize( ldap://alpha.int.dbk.ncr.com )
          filter: (objectclass=*)
          requesting: All userApplication attributes
          dn: DC=alpha,DC=int,DC=dbk,DC=ncr,DC=com
          objectClass: top
          objectClass: domain
          objectClass: domainDNS
          distinguishedName: DC=alpha,DC=int,DC=dbk,DC=ncr,DC=com
          ...

          Stanton added a comment - - edited Have the same issue, Error while serving http://10.49.165.70/jenkins/manage/descriptorByName/hudson.security.LDAPSecurityRealm/validate java.lang.NullPointerException at hudson.security.LDAPSecurityRealm$DescriptorImpl.validate(LDAPSecurityRealm.java:1594) at hudson.security.LDAPSecurityRealm$DescriptorImpl.doValidate(LDAPSecurityRealm.java:1549) at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397) Caused: java.lang.reflect.InvocationTargetException Jenkins 2.375.1 openjdk version "11.0.17" 2022-10-18 LTS LDAP PluginVersion2.12 ldapsearch succesfully connects: ldapsearch -v -LLL -D 'alpha\svc_jenkins' -W  -h alpha.int.dbk.ncr.com -b "DC=alpha,DC=int,DC=dbk,DC=ncr,DC=com" ldap_initialize( ldap://alpha.int.dbk.ncr.com ) filter: (objectclass=*) requesting: All userApplication attributes dn: DC=alpha,DC=int,DC=dbk,DC=ncr,DC=com objectClass: top objectClass: domain objectClass: domainDNS distinguishedName: DC=alpha,DC=int,DC=dbk,DC=ncr,DC=com ...

            Unassigned Unassigned
            alanmosilva Alan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: