Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-1994

Connection to ldap (freeipa) not working on archiva 2.2.4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.4
    • None
    • Users/Security
    • None

    Description

      Specified the ldap properties on the users/ldap page in the following format (real names masked). When click "Verify Ldap Changes" it comes back saying "ldap connection verified". But when I click the "Verify LDAP configuration on server side", it throws a bunch of errors in the log and gives the error: "An error has happened you must contact the administrator to check the logs."

      Host: ldaphost.company.net

      port: 389

      Base dn: dc=company,dc=net

      Base dn for groups: cn=groups,cn=accounts,dc=company,dc=net

      bindDn: uid=user1,cn=users,cn=accounts,dc=company,dc=net

       

      I'm able to do an ldapsearch on the same host:

      ldapsearch -W -H ldap://ldaphost.company.net -b "cn=groups,cn=accounts,dc=company,dc=net" -D "uid=user1,cn=users,cn=accounts,dc=company,dc=net"

      (using the same password as put in the archiva ldap page)

       

      Some of the errors in the log: (complete error is attached).

      ----------------------

      2019-08-22 17:21:17,411 [qtp1792496309-24] WARN  org.apache.cxf.phase.PhaseInterceptorChain [] - Application

      {[http://services.rest.archiva.apache.org/]}

      DefaultPingService has thrown exception, unwinding now

      org.apache.cxf.interceptor.Fault: null

              at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:163) ~[cxf-core-3.0.3.jar:3.0.3]

      ...

      ...

      Caused by: java.lang.NullPointerException

              at org.apache.archiva.redback.common.ldap.connection.DefaultLdapConnection.<init>(DefaultLdapConnection.java:59)

       

       

       

      Attachments

        Activity

          People

            martin_s Martin Schreier
            bravius@gmail.com ravi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: