camel-ldif component problem

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

camel-ldif component problem

Daniel Johansson
Hi users

Hope you can help me with a problem i have with camel-ldif.When i try to
modify one object in the AD it works fine but when i have two modify
objects i get:

LdifReader.parseModify: ERR_12042_BAD_MODIFY_SEPARATOR_2 Bad state : we
should have come from a MOD_SPEC or an ATTRVAL_SPEC, at line 5

here is the LDIF that i send as a body with
.setBody(constant(ldifString.toString())) in my route:

ldifString.append("version: 1\n"
                + "\n"
                + "dn: CN=Testobjekt3, OU=Testusers, OU=LFV_Managed,
DC=lfv, DC=se\n"
                + "changetype: modify\n"
                + "add: telephoneNumber\n"
                + "telephoneNumber: +46103033906\n"
                + "\n"
                + "dn: CN=Testobjekt5, OU=Testusers, OU=LFV_Managed,
DC=lfv, DC=se\n"
                + "changetype: modify\n"
                + "add: telephoneNumber\n"
                + "telephoneNumber: +46103033908\n"
                + "-");

i use apache camel v 2.23.2 and camel-ldif version
2.23.2.fuse-740011-redhat-00001

Can you see some obvious problem? I have really tried to read the rfc and
to make it correct.
https://www.ietf.org/rfc/rfc2849.txt

Thanks
/Daniel