Hi – is there a way (dangerous though) to clear a directory and start
again? I am having an issue by which I can search for an entry, but
not delete it.
Eg
[root@First-Line lib]# ldapsearch -x -W -D
"cn=Manager,dc=TelecityGroup,dc=com" "cn=Sabayon user"
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base <> with scope subtree
# filter: cn=Sabayon user
# requesting: ALL
#
# sabayon, People, TelecityGroup.com
dn: uid=sabayon,ou=People,dc=TelecityGroup,dc=com
uid: sabayon
cn: Sabayon user
givenName: Sabayon
sn: user
mail: sabayon@TelecityGroup.com
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword:: e2NyeXB0fSEh
shadowLastChange: 14088
shadowMax: 99999
shadowWarning: 7
loginShell: /sbin/nologin
uidNumber: 86
gidNumber: 86
homeDirectory: /home/sabayon
gecos: Sabayon user
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
[root@First-Line lib]# ldapdelete -x -D
"cn=Manager,dc=TelecityGroup,dc=com" -W "cn=Sabayon
user,dc=TelecityGroup,dc=com"
Enter LDAP Password:
ldap_delete: No such object (32)
matched DN: dc=TelecityGroup,dc=com