javax.naming.InvalidNameException: cn=ut40uat-hsmain-ext cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx: [LDAP: error code 34 - 0000208F: NameErr: DSID-031001F7, problem 2006 (BAD_NAME), data 8349, best match of: 'cn=xxxx-xxxx-xxx cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx ]; remaining name 'cn=xxxxx-xxxx-xxx cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx'

Atlassian JIRA | Saleh Parsa [Atlassian] | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Confluence throws following when syncing with LDAP directories containing CNF attributes: {code} cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx: [LDAP: error code 34 - 0000208F: NameErr: DSID-031001F7, problem 2006 (BAD_NAME), data 8349, best match of: 'cn=ut40uat-hsmain-ext cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx' ]; nested exception is javax.naming.InvalidNameException: cn=ut40uat-hsmain-ext cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx: [LDAP: error code 34 - 0000208F: NameErr: DSID-031001F7, problem 2006 (BAD_NAME), data 8349, best match of: 'cn=xxxx-xxxx-xxx cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx ]; remaining name 'cn=xxxxx-xxxx-xxx cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx' at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:136) {code} According to this [Microsoft KB|http://msdn.microsoft.com/en-us/library/bb727059.aspx#EAAA]: {quote} Active Directory supports multimaster replication of directory objects between all domain controllers in the domain. When replication of objects results in name conflicts (two objects have the same name within the same container), the system automatically renames one of these accounts to a unique name. For example, object ABC is renamed to be *CNF:guid, where "*" represents a reserved character, "CNF" is a constant that indicates a conflict resolution, and "guid" represents a printable representation of the objectGuid attribute value. {quote} So the CNF is created when there is a conflict in the replication of the domain controllers and there are duplicated objects. Confluence should gracefully handle this error. h6. Workaround: 1) Ask the LDAP administrator to remove the duplicated groups or users from the LDAP and make sure there are no other conflicts before syncing. 2) Create a filter for the users and groups objects to avoid syncing with objects that have cnf attributes. {code} Should become something like: (&(objectClass=group)(!(cnf:*))) OR (&(objectClass=group)(!(cn=cnf:))) {code} Check here for additional details on [LDAP filters.|https://confluence.atlassian.com/display/DEV/How+to+write+LDAP+search+filters]

    Atlassian JIRA | 1 year ago | Saleh Parsa [Atlassian]
    javax.naming.InvalidNameException: cn=ut40uat-hsmain-ext cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx: [LDAP: error code 34 - 0000208F: NameErr: DSID-031001F7, problem 2006 (BAD_NAME), data 8349, best match of: 'cn=xxxx-xxxx-xxx cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx ]; remaining name 'cn=xxxxx-xxxx-xxx cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx'

    Root Cause Analysis

    1. javax.naming.InvalidNameException

      cn=ut40uat-hsmain-ext cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx: [LDAP: error code 34 - 0000208F: NameErr: DSID-031001F7, problem 2006 (BAD_NAME), data 8349, best match of: 'cn=xxxx-xxxx-xxx cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx ]; remaining name 'cn=xxxxx-xxxx-xxx cnf:42e39380-4839-4ecb-bf4c-707141604142,ou=xxxx-xxxx,ou=xxx,ou=xxxx-xxxx,dc=xxxx,dc=xx'

      at org.springframework.ldap.support.LdapUtils.convertLdapException()
    2. spring-ldap-core
      LdapUtils.convertLdapException
      1. org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:136)
      1 frame