Page created: 24 Jul 2019
|
Page updated: 6 Nov 2019
| 1 min read
7.3 Product PingDirectory
-
Use ldapmodify to undelete a soft-deleted entry that has an
original RDN,
uid=user.1
, to a new RDN,uid=user.5
. You will need to ensure that the DN that you are undeleting the entry to does not already exist as this will lead to an "entry already exists" error if you specify a DN that already exists in the Directory Server as a normal entry.$ bin/ldapmodify --allowUndelete dn: uid=user.5,ou=People,dc=example,dc=com changetype:add ds-undelete-from-dn: entryUUID=4e9b7847-edcb-3791-b11b-7505f4a55af4+uid=user.1,ou=People,dc=example,dc=com
-
View the results using ldapsearch. You will notice the RDN
and the
uid
attribute has changed.dn: uid=user.5,ou=People,dc=example,dc=com objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson postalAddress: Aartjan Aalders$59748 Willow Street$Green Bay, TN 66239 postalCode: 66239 description: This is the description for Aartjan Aalders. uid: user.5 userPassword: {SSHA}RdBCwQ2kIw57LukRthjrFBS/oFylJARnmTnorA== employeeNumber: 1 initials: AKA givenName: Aartjan pager: +1 197 025 3730 mobile: +1 890 430 9077 cn: Aartjan Aalders sn: Aalders telephoneNumber: +1 094 100 7524 street: 59748 Willow Street homePhone: +1 332 432 4295 l: Green Bay mail: user.3@maildomain.net st: TN entryUUID=4e9b7847-edcb-3791-b11b-7505f4a55af4