archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rabe, Jens" <jens.r...@iwes.fraunhofer.de>
Subject Redback LDAP does not find any groups; NPEs on the logs
Date Wed, 16 Jul 2014 16:23:09 GMT
Hello,

I have the following problem:

I set up an OpenLDAP server, and created the following organizational units:
ou=groups,dc=mycompany,dc=com
ou=people,dc=mycompany,dc=com

In the groups OU I created two POSIX groups, in the people OU I created some users.

Now, I configured Redback the following:
host - my LDAP host
port - 389
Writable - disabled
baseDN - ou=people,dc=mycompany,dc=com
Base DN for groups - ou=groups,dc=mycompany,dc=com
bindDN - cn=admin,dc=mycompany,dc=com
password - the password for the admin account

I left all other fields at the defaults. When I click "Verify LDAP changes" the connection
succeeds. After clicking "Save" and "Verify LDAP configuration on server side" there is a
success, too.

Now, when I go to LDAP/Roles Mapping, the LDAP groups field does not pick up the groups I
created in ou=groups, and when I save and drag the LDAP user manager and RBac manager, I get:

An error has happened you must contact the administrator to check the logs.

This is caused by the following exception (Stack trace abbreviated):
INFO   | jvm 1    | 2014/07/16 18:20:44 | java.lang.NullPointerException
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at javax.naming.NameImpl.<init>(NameImpl.java:281)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at javax.naming.CompositeName.<init>(CompositeName.java:231)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:339)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.archiva.redback.common.ldap.role.DefaultLdapRoleMapper.getAllGroups(DefaultLdapRoleMapper.java:143)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.archiva.redback.rest.services.DefaultLdapGroupMappingService.getLdapGroups(DefaultLdapGroupMappingService.java:79)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at java.lang.reflect.Method.invoke(Method.java:606)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:165)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:89)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:237)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:239)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:213)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:131)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:266)
INFO   | jvm 1    | 2014/07/16 18:20:44 |     at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:191)

What am I missing? It is probably something I am missing on the LDAP server, could anyone
please point me to the solution?

Thanks,
Jens


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message