Friday, June 27, 2014

Re: [389-users] Removing entries with invalid DN syntax

On 06/27/2014 10:16 AM, Audun Røe wrote:
This works for me as well. However, when added with (what I assume to be) proper escaping in the first place like in this case, the entries also appear with visible escaping when browsing the directory. The problematic entries don't. 

I also can't add more entries of the latter type, as the server responds with 34 - syntax error, just like when attempting to delete the ones that are already there. In any case, I guess I'll just go for the big hammer, re-import and be done with it :)
did you try with quotes:
ldapmodify .....
dn: ou="my<problematic>entry",suffix
changetype: delete

if that doesn't work, I'm afraid export/import is the last resort


On Thu, Jun 26, 2014 at 4:58 PM, Ludwig Krispenz <> wrote:
This works for me:
more inv.txt

dn: ou=ny\<group\>mmm,dc=redhat,dc=com
changetype: add
objectclass: organizationalunit

 ldapmodify -x -h localhost -p 1390 -D "cn=directory manager" -w secret12 -f inv.txt
adding new entry "ou=ny\<group\>mmm,dc=redhat,dc=com"

[ludwig@elkris ~]$ ldapdelete -x -h localhost -p 1390 -D "cn=directory manager" -w secret12

[26/Jun/2014:16:53:26 +0200] conn=9 op=1 ADD dn="ou=ny\3Cgroup\3Emmm,dc=redhat,dc=com"
[26/Jun/2014:16:53:27 +0200] conn=9 op=1 RESULT err=0 tag=105 nentries=0 etime=1
[26/Jun/2014:16:54:23 +0200] conn=10 op=1 DEL dn="ou=ny\3Cgroup\3Emmm,dc=redhat,dc=com"
[26/Jun/2014:16:54:26 +0200] conn=10 op=1 RESULT err=0 tag=107 nentries=0 etime=3

--  389 users mailing list

No comments:

Post a Comment