You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "ravi (Jira)" <ji...@apache.org> on 2019/08/22 18:49:00 UTC

[jira] [Updated] (MRM-1994) Could not get connection to ldap (freeipa) working on archiva 2.2.4

     [ https://issues.apache.org/jira/browse/MRM-1994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ravi updated MRM-1994:
----------------------
    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)

 

 

 

  was:
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=star2star,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)

 

 

 


> Could not get connection to ldap (freeipa) working on archiva 2.2.4
> -------------------------------------------------------------------
>
>                 Key: MRM-1994
>                 URL: https://issues.apache.org/jira/browse/MRM-1994
>             Project: Archiva
>          Issue Type: Bug
>          Components: Users/Security
>    Affects Versions: 2.2.4
>         Environment: OS:
> Description:	Ubuntu 16.04.5 LTS
> Release:	16.04
> Codename:	xenial
> openjdk version "1.8.0_222"
> OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~16.04.1-b10)
> OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
>            Reporter: ravi
>            Priority: Major
>         Attachments: archiva_ldap_error.txt
>
>
> 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)
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)