[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
cannot delete an entry !?
I entered a wrong entry, how ? no matter , now I want to remove it but
I cannot :-(.
$ldapsearch -x -b "dc=int-evry,dc=fr" "uid=*toto*"
version: 2
#
# filter: uid=*toto*
# requesting: ALL
#
# toto,People,dc=int-evry,dc=fr,People,dc=int-evry,dc=fr
dn: uid=toto,ou=People,dc=int-evry,dc=fr,ou=People,dc=int-evry,dc=fr
uid: gilles
uid: toto,ou=People,dc=int-evry,dc=fr
...
here the entry is found, but the dn is wrong.
dn: uid=toto,ou=People,dc=int-evry,dc=fr,ou=People,dc=int-evry,dc=fr
should be
dn: uid=toto,ou=People,dc=int-evry,dc=fr
I just want to remove it , how ?
$cat /tmp/dn
dn: uid=toto\,ou=People\,dc=int-evry\,dc=fr,ou=People,dc=int-evry,dc=fr
changetype: delete
$ldapmodify -x -W -D"cn=admin,dc=int-evry,dc=fr" -f /tmp/dn
Enter LDAP Password:
deleting entry
"uid=toto,ou=People,dc=int-evry,dc=fr,ou=People,dc=int-evry,dc=fr"
ldap_delete: Unknown error
additional info: could not locate parent of entry
ldif_record() = 80
thanks
--
Jehan Procaccia
Institut National des Telecommunications| Email:
Jehan.Procaccia@int-evry.fr
MCI, Moyens Communs Informatiques | Tel : +33 (0) 160764436
9 rue Charles Fourier 91011 Evry France | Fax : +33 (0) 160764321