javax.naming.directory.InvalidAttributeValueException: 'uniqueMember' has no values.; remaining name 'cn=OpenVPN manager,ou=Roles,dc=XXX,dc=ch'

Atlassian JIRA | Matteo Castelli | 10 years ago
  1. 0

    Trying to create a new role (or group) I receive the following error (probably related to CWD-180) 16:16:48,282 INFO crowd.integration.directory.connector.SpringLDAPConnector: Performing role search: baseDN = ou=Roles,dc=XXX,dc=ch - filter = (objectclass=groupOfUniqueNames) 16:17:08,186 INFO crowd.integration.directory.connector.SpringLDAPConnector: Performing group search: baseDN = ou=Groups,dc=XXX,dc=ch - filter = (&(cn=OpenVPN manager)(objectclass=groupOfUniqueNames)) 16:17:08,193 ERROR crowd.console.action.role.AddRole: Operation failed; nested exception is javax.naming.directory.InvalidAttributeValueException: 'uniqueMember' has no values.; remaining name 'cn=OpenVPN manager,ou=Roles,dc=XXX,dc=ch' org.springframework.ldap.UncategorizedLdapException: Operation failed; nested exception is javax.naming.directory.InvalidAttributeValueException: 'uniqueMember' has no values.; remaining name 'cn=OpenVPN manager,ou=Roles,dc=XXX,dc=ch' javax.naming.directory.InvalidAttributeValueException: 'uniqueMember' has no values.; remaining name 'cn=OpenVPN manager,ou=Roles,dc=XXX,dc=ch' at com.sun.jndi.ldap.LdapClient.add(LdapClient.java:996) at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:375) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(ComponentDirContext.java:277) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:197) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:186) at javax.naming.directory.InitialDirContext.bind(InitialDirContext.java:158) at org.springframework.ldap.LdapTemplate$22.executeWithContext(LdapTemplate.java:982) at org.springframework.ldap.LdapTemplate.executeWithContext(LdapTemplate.java:762) at org.springframework.ldap.LdapTemplate.executeReadWrite(LdapTemplate.java:757) at org.springframework.ldap.LdapTemplate.bind(LdapTemplate.java:979) at com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.addContainerObject(SpringLDAPConnector.java:241) at com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.addRole(SpringLDAPConnector.java:523)

    Atlassian JIRA | 10 years ago | Matteo Castelli
    javax.naming.directory.InvalidAttributeValueException: 'uniqueMember' has no values.; remaining name 'cn=OpenVPN manager,ou=Roles,dc=XXX,dc=ch'
  2. 0

    Trying to create a new role (or group) I receive the following error (probably related to CWD-180) 16:16:48,282 INFO crowd.integration.directory.connector.SpringLDAPConnector: Performing role search: baseDN = ou=Roles,dc=XXX,dc=ch - filter = (objectclass=groupOfUniqueNames) 16:17:08,186 INFO crowd.integration.directory.connector.SpringLDAPConnector: Performing group search: baseDN = ou=Groups,dc=XXX,dc=ch - filter = (&(cn=OpenVPN manager)(objectclass=groupOfUniqueNames)) 16:17:08,193 ERROR crowd.console.action.role.AddRole: Operation failed; nested exception is javax.naming.directory.InvalidAttributeValueException: 'uniqueMember' has no values.; remaining name 'cn=OpenVPN manager,ou=Roles,dc=XXX,dc=ch' org.springframework.ldap.UncategorizedLdapException: Operation failed; nested exception is javax.naming.directory.InvalidAttributeValueException: 'uniqueMember' has no values.; remaining name 'cn=OpenVPN manager,ou=Roles,dc=XXX,dc=ch' javax.naming.directory.InvalidAttributeValueException: 'uniqueMember' has no values.; remaining name 'cn=OpenVPN manager,ou=Roles,dc=XXX,dc=ch' at com.sun.jndi.ldap.LdapClient.add(LdapClient.java:996) at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:375) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(ComponentDirContext.java:277) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:197) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:186) at javax.naming.directory.InitialDirContext.bind(InitialDirContext.java:158) at org.springframework.ldap.LdapTemplate$22.executeWithContext(LdapTemplate.java:982) at org.springframework.ldap.LdapTemplate.executeWithContext(LdapTemplate.java:762) at org.springframework.ldap.LdapTemplate.executeReadWrite(LdapTemplate.java:757) at org.springframework.ldap.LdapTemplate.bind(LdapTemplate.java:979) at com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.addContainerObject(SpringLDAPConnector.java:241) at com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.addRole(SpringLDAPConnector.java:523)

    Atlassian JIRA | 10 years ago | Matteo Castelli
    javax.naming.directory.InvalidAttributeValueException: 'uniqueMember' has no values.; remaining name 'cn=OpenVPN manager,ou=Roles,dc=XXX,dc=ch'
  3. 0

    JDNI Active Directory, creating groups with scope

    Stack Overflow | 6 years ago | onigunn
    javax.naming.directory.InvalidAttributeValueException: Malformed 'groupType' attribute value; remaining name 'cn=localTestGroup1,ou=groups'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Associate Ldap user to a group with Java

    Stack Overflow | 4 years ago | user1501454
    javax.naming.directory.InvalidAttributeValueException: Malformed 'memberOf' attribute value; remaining name 'CN=lcarvalho,OU=<system_name>,OU=Users,OU=<server>,DC=com'
  6. 0

    Using crowd-ds151 I was able to replicate a customer's issue: 2008-06-05 14:56:20,120 http-8095-1 ERROR [console.action.group.AddGroup] [LDAP: error code 21 - failed to add entry cn=donna_test_group,dc=example,dc=com: Attribute value '' for attribute 'uniquemember' is syntactically incorrect]; nested exception is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - failed to add entry cn=donna_test_group,dc=example,dc=com: Attribute value '' for attribute 'uniquemember' is syntactically incorrect]; remaining name 'cn=donna_test_group,dc=example,dc=com' org.springframework.ldap.InvalidAttributeValueException: [LDAP: error code 21 - failed to add entry cn=donna_test_group,dc=example,dc=com: Attribute value '' for attribute 'uniquemember' is syntactically incorrect]; nested exception is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - failed to add entry cn=donna_test_group,dc=example,dc=com: Attribute value '' for attribute 'uniquemember' is syntactically incorrect]; remaining name 'cn=donna_test_group,dc=example,dc=com' at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:122) at org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:786) at org.springframework.ldap.core.LdapTemplate.executeReadWrite(LdapTemplate.java:779) at org.springframework.ldap.core.LdapTemplate.bind(LdapTemplate.java:982) at com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.addContainerObject(SpringLDAPConnector.java:462) at com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.addGroup(SpringLDAPConnector.java:486) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addGroup(DirectoryManagerGeneric.java:222) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:20) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy1.addGroup(Unknown Source) at com.atlassian.crowd.console.action.group.AddGroup.doUpdate(AddGroup.java:44) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:192) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:31) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at com.atlassian.crowd.console.interceptor.XWorkTransactionInterceptor.intercept(XWorkTransactionInterceptor.java:111) at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:190) at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116) at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:273) at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138) at com.atlassian.crowd.console.filter.CrowdDelegatingFilterProxy.doFilter(CrowdDelegatingFilterProxy.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at com.atlassian.crowd.console.filter.CrowdOpenSessionInViewFilter.doFilterInternal(CrowdOpenSessionInViewFilter.java:26) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.gzipfilter.GzipFilter.doFilterInternal(GzipFilter.java:88) at com.atlassian.gzipfilter.GzipFilter.doFilter(GzipFilter.java:64) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138) at com.atlassian.crowd.console.filter.CrowdDelegatingFilterProxy.doFilter(CrowdDelegatingFilterProxy.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.crowd.console.filter.LicenceFilter.doFilterInternal(LicenceFilter.java:55) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:183) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:138) at com.atlassian.crowd.console.filter.CrowdDelegatingFilterProxy.doFilter(CrowdDelegatingFilterProxy.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.core.filters.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:33) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:613) Caused by: javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - failed to add entry cn=donna_test_group,dc=example,dc=com: Attribute value '' for attribute 'uniquemember' is syntactically incorrect]; remaining name 'cn=donna_test_group,dc=example,dc=com' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2998) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2931) at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2737) at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:379) at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(ComponentDirContext.java:277) at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:197) at javax.naming.directory.InitialDirContext.bind(InitialDirContext.java:163) at org.springframework.ldap.core.LdapTemplate$21.executeWithContext(LdapTemplate.java:985) at org.springframework.ldap.core.LdapTemplate.executeWithContext(LdapTemplate.java:784) ... 107 more

    Atlassian JIRA | 9 years ago | Donna McGahan [Atlassian]
    org.springframework.ldap.InvalidAttributeValueException: [LDAP: error code 21 - failed to add entry cn=donna_test_group,dc=example,dc=com: Attribute value '' for attribute 'uniquemember' is syntactically incorrect]; nested exception is javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - failed to add entry cn=donna_test_group,dc=example,dc=com: Attribute value '' for attribute 'uniquemember' is syntactically incorrect]; remaining name 'cn=donna_test_group,dc=example,dc=com'

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.naming.directory.InvalidAttributeValueException

      'uniqueMember' has no values.; remaining name 'cn=OpenVPN manager,ou=Roles,dc=XXX,dc=ch'

      at com.sun.jndi.ldap.LdapClient.add()
    2. Java RT
      InitialDirContext.bind
      1. com.sun.jndi.ldap.LdapClient.add(LdapClient.java:996)
      2. com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:375)
      3. com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(ComponentDirContext.java:277)
      4. com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:197)
      5. com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:186)
      6. javax.naming.directory.InitialDirContext.bind(InitialDirContext.java:158)
      6 frames
    3. spring-ldap-core
      LdapTemplate.bind
      1. org.springframework.ldap.LdapTemplate$22.executeWithContext(LdapTemplate.java:982)
      2. org.springframework.ldap.LdapTemplate.executeWithContext(LdapTemplate.java:762)
      3. org.springframework.ldap.LdapTemplate.executeReadWrite(LdapTemplate.java:757)
      4. org.springframework.ldap.LdapTemplate.bind(LdapTemplate.java:979)
      4 frames
    4. com.atlassian.crowd
      SpringLDAPConnector.addRole
      1. com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.addContainerObject(SpringLDAPConnector.java:241)
      2. com.atlassian.crowd.integration.directory.connector.SpringLDAPConnector.addRole(SpringLDAPConnector.java:523)
      2 frames