Installation guide

dn: cn=" uid=jsmith,ou=Dev0,o=Engineeri ng0" ,ou=People,dc=exam ple,dc=com
uid: jsmith
givenNam e: test
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
sn: smith
cn: uid=jsm ith,ou=Dev0,o=Engineering0
userPassword: secret
dn: cn=uid\=jsmith\,ou\=Dev0\,o\=Engineeri ng0,ou=People,dc=example,dc=com
uid: jsmith
givenNam e: test
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
sn: smith
cn: uid=jsm ith,ou=Dev0,o=Engineering0
userPassword: secret
When these duplicate entries are migrated and their DNs are upgraded to the new, stricter DN format
after running setup-ds-admin.pl -u, the duplicate entry is given a slightly differnet DN that
incorporates its unique ID. After the server upgrade, these duplicate entires can be preserved (which
takes up additional space) or they can be purged.
1. Open the error log for the instance.
vim /var/log/dirsrv/slapd-instance_name/error
2. Look for error messages related to duplicate entries. These messages will have the term
Duplicated entrydn or Duplicated entry in them. For example:
[..] - upgradedn userRoot: Duplicated entrydn detected:
"cn=uid\3djsmith1\2cou\3ddev0\2co\3dengineering0,ou=people,dc=example,dc=com
": Entry ID: (10, 11)
[..] - upgradedn userRoot: WARNING: Duplicated entry
cn=uid\=jsm ith1\,ou\=Dev0\,o\=Engineering0,ou=People,dc=example,dc=com is
renam ed to
cn=uid\3Djsmith1\2Cou\3DDev0\2Co\3DEngineering0+nsuniqueid=ae8c95af-8fac11df-
80000000-00000000,ou=People,dc=exam ple,dc=com; Entry ID: 11
3. Decide which duplicated entry to keep. One entry will have the standard DN. The other has an
RDN in the format cn=cn+nsuniqueid.
4. Delete the duplicate entries. Each specific duplicate entry must be deleted manually. For example:
/usr/lib64/m ozldap/ldapdelete -D 'cn=directory manager' -w secret
dn:
cn=uid\3djsmith1\2cou\3ddev0\2co\3dengineering0,ou=people,dc=example,dc=com
5. If the entry which was kept has the renamed RDN format (cn=cn+nsuniqueid), then rename the
entry to the original DN. For example:
2. Structural Changes in Red Hat Directory Server 8.2
7