javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - uniquemember attribute has duplicate value.]; remaining name 'cn=JRNL433_AUTHOR,cn=Groups,dc=example,dc=com'

Oracle Community | Mounika | 2 years ago
  1. 1

    javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - uniquemember attribute has duplicate value.]; error in OVD logs

    Oracle Community | 2 years ago | Mounika
    javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - uniquemember attribute has duplicate value.]; remaining name 'cn=JRNL433_AUTHOR,cn=Groups,dc=example,dc=com'
  2. 0

    AttributeInUseException for AD to OID sync troubleshooting

    Oracle Community | 8 years ago | 644024
    javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - title attribute has duplicate value.]; remaining name 'CN=first last,OU=UserOU,ou=xyz,dc=xyz,dc=xyz'
  3. 0

    Inconsistent Behavior : error code 20 - attribute or value exists

    Oracle Community | 3 years ago | 98cb3e36-0f91-4364-a55d-0b7e59417ed9
    javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - Attribute Or Value Exists]; remaining name 'cn=sdoc,cn=Users,dc=xxx,dc=xxx'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OID-Create New Entry Error-LDAP: error code 20 - Attribute Or Value Exists

    Oracle Community | 7 years ago | 685935
    javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - Attribute Or Value Exists]; remaining name 'cn=112233445\-9,ou=people,dc=cal,dc=tdc,dc=ad,dc=teale,dc=ca,dc=gov'
  6. 0

    If you have Write permissions on your LDAP and try to modify a group (either the description or the active field), it may fail with this error: {code} 2012-08-24 10:22:55,139 http-8095-5 ERROR [console.action.group.UpdateGroup] org.springframework.ldap.AttributeInUseException: [LDAP: error code 20 - ATTRIBUTE_OR_VALUE_EXISTS : failed for Modify Request Object : 'cn=Durarara,ou=groups,ou=system' Modification[0] Operation : add Modification description: test : ERR_254 Trying to add existing value {0} to attribute description]; nested exception is javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - ATTRIBUTE_OR_V ALUE_EXISTS: failed for Modify Request Object : 'cn=Durarara,ou=groups,ou=system' Modification[0] Operation : add Modification description: test : ERR_254 Trying to add existing value {0} to attribute description]; remaining name 'cn=Durarara,ou=groups,ou=system' com.atlassian.crowd.exception.OperationFailedException: org.springframework.ldap.AttributeInUseException: [LDAP: error code 20 - ATTRIBUTE_OR_VALUE_EXISTS: failed for Modi fy Request Object : 'cn=Durarara,ou=groups,ou=system' Modification[0] Operation : add Modification description: test : ERR_254 Trying to add existing value {0} to attribute description]; nested exception is javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - ATTRIBUTE_OR_V ALUE_EXISTS: failed for Modify Request Object : 'cn=Durarara,ou=groups,ou=system' Modification[0] Operation : add Modification description: test : ERR_254 Trying to add existing value {0} to attribute description]; remaining name 'cn=Durarara,ou=groups,ou=system' at com.atlassian.crowd.directory.SpringLDAPConnector.updateGroup(SpringLDAPConnector.java:1299) at com.atlassian.crowd.directory.DbCachingRemoteDirectory.updateGroup(DbCachingRemoteDirectory.java:370) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.updateGroup(DirectoryManagerGeneric.java:553) 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:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) {code} Crowd is attempting to Add the description to LDAP, regardless of whether it exists or not. In this case, the description was empty, and the Active checkbox was unchecked. When the page refreshes, the Active box is checked again (because of [CWD-2033|https://jira.atlassian.com/browse/CWD-2033]), and a user will try to uncheck it and Update again, which causes Crowd to attempt to Add another empty description. Since a blank description value exists, it throws the duplicate attribute error as attribute:value pairs must be unique. Crowd should either perform a modify if a description exists, or be able to swallow the error as it is essentially harmless since the description value is already present. h3. Workaround for LDAP Admins to Manage Group Memberships It has been reported that this error may affect an admin's ability to edit group memberships. If you *are comfortable manipulating your LDAP directly*, use the following method to work around this limitation: # Download and install [Apache Directory Studio|http://directory.apache.org/studio/]. # Create a new connection to your LDAP using the same bind credentials that Crowd authenticates with. # Add/Remove user memberships from within the LDAP tree.

    Atlassian JIRA | 4 years ago | Adam Laskowski [Atlassian]
    javax.naming.directory.AttributeInUseException: [LDAP: error code 20 - ATTRIBUTE_OR_V ALUE_EXISTS: failed for Modify Request Object : 'cn=Durarara,ou=groups,ou=system' Modification[0] Operation : add Modification description: test : ERR_254 Trying to add existing value {0} to attribute description]; remaining name 'cn=Durarara,ou=groups,ou=system'

    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.AttributeInUseException

      [LDAP: error code 20 - uniquemember attribute has duplicate value.]; remaining name 'cn=JRNL433_AUTHOR,cn=Groups,dc=example,dc=com'

      at com.sun.jndi.ldap.LdapCtx.mapErrorCode()
    2. Java RT
      InitialDirContext.modifyAttributes
      1. com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3025)
      2. com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987)
      3. com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2794)
      4. com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapCtx.java:1455)
      5. com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(ComponentDirContext.java:255)
      6. com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(PartialCompositeDirContext.java:172)
      7. javax.naming.directory.InitialDirContext.modifyAttributes(InitialDirContext.java:153)
      7 frames
    3. com.octetstring.vde
      AbstractOperation.perform
      1. com.octetstring.vde.backend.jndi.ConnectionHandle.modify(ConnectionHandle.java:311)
      2. com.octetstring.vde.backend.jndi.BackendJNDI.modify(BackendJNDI.java:798)
      3. com.octetstring.vde.chain.Chain.nextModify(Chain.java:334)
      4. com.octetstring.vde.chain.plugins.performance.MonitorPerformance.modify(MonitorPerformance.java:363)
      5. com.octetstring.vde.chain.Chain.nextModify(Chain.java:343)
      6. com.octetstring.vde.chain.plugins.usermanagement.UserManagement.modify(UserManagement.java:787)
      7. com.octetstring.vde.chain.Chain.nextModify(Chain.java:343)
      8. com.octetstring.vde.chain.PluginChain.runModify(PluginChain.java:249)
      9. com.octetstring.vde.chain.PluginManager.runModify(PluginManager.java:534)
      10. com.octetstring.vde.chain.PluginManager.runModify(PluginManager.java:499)
      11. com.octetstring.vde.backend.AdapterServiceInterface.modify(AdapterServiceInterface.java:821)
      12. com.octetstring.vde.backend.BackendHandler.modify(BackendHandler.java:614)
      13. com.octetstring.vde.chain.Chain.nextModify(Chain.java:327)
      14. com.octetstring.vde.chain.plugins.performance.MonitorPerformance.modify(MonitorPerformance.java:363)
      15. com.octetstring.vde.chain.Chain.nextModify(Chain.java:343)
      16. com.octetstring.vde.chain.plugins.AclCheckerPlugin.modify(AclCheckerPlugin.java:498)
      17. com.octetstring.vde.chain.Chain.nextModify(Chain.java:343)
      18. com.octetstring.vde.chain.PluginChain.runModify(PluginChain.java:249)
      19. com.octetstring.vde.chain.PluginManager.runModify(PluginManager.java:534)
      20. com.octetstring.vde.chain.PluginManager.runModify(PluginManager.java:499)
      21. com.octetstring.vde.chain.GlobalServicesInterface.runModify(GlobalServicesInterface.java:217)
      22. com.octetstring.vde.operation.ModifyOperation.run(ModifyOperation.java:250)
      23. com.octetstring.vde.operation.AbstractOperation.perform(AbstractOperation.java:122)
      23 frames