Activity for csv2ldif2

  • Andrea Grillini Andrea Grillini posted a comment on ticket #4

    Thanks, Benedikt! Andrea

  • Benedikt Hallinger Benedikt Hallinger modified ticket #4

    Output possibly changes while arguments remain unchanged in each run

  • Benedikt Hallinger Benedikt Hallinger posted a comment on ticket #4

    Fixed in 1.2: https://sourceforge.net/projects/csv2ldif2/files/csv2ldif2-1.2.tar.gz/download

  • csv2ldif2 csv2ldif2 released /csv2ldif2-1.2.tar.gz

  • Benedikt Hallinger Benedikt Hallinger committed [r20] on Code

    Version 1.2

  • Benedikt Hallinger Benedikt Hallinger committed [r19] on Code

    Make output sorting stable

  • Andrea Grillini Andrea Grillini posted a comment on ticket #4

    Benedikt, in my view giving a specific order to the components in the output shouldn't be required at all. Though I still wonder why there's no fixed and predictable "default order", I mean as a matter of fact the order of the components in the output changes possibly at each run randomly. I can believe no component is missing anyway, though this random behavior suggests the idea of something out of control, and mysterious at the same time - at least for me, since likely I don't know yet all that...

  • Benedikt Hallinger Benedikt Hallinger modified a comment on ticket #4

    Hi, investigated; reason is that the tool saves its data in a perl hash. And they are, by definition, unordered. So, if this is really important, it might be an option to add the data into a hash using systematic keys (i.e. add a entry counter number to the front of the key) and sort the entries by that. That however will break duplicate handling of several lines for the same entry, and we need a solution for that too. But again, LDIF itself is not ordered per se, so - is this important to you, so...

  • Benedikt Hallinger Benedikt Hallinger modified a comment on ticket #4

    Hi, investigated; reason is that the tool saves its data in a perl hash. And they are, by definition, unordered. So, if this is really important, it might be an option to add the data into a hash using systematic keys (i.e. add a entry counter number to the front of the key) and sort the entries by that. That however will break duplicate handling of several lines for the same entry, and we need a solution for that too. But again, LDIF itself is not ordered per se, so - is this important to you, so...

  • Benedikt Hallinger Benedikt Hallinger posted a comment on ticket #4

    Hi, investigated; reason is that the tool saves its data in a perl hash. And they are, by definition, unordered. So, if this is really important, it might be an option to add the data into a hash using systematic keys (i.e. add a entry counter number to the front of the key) and sort the entries by that. But again, LDIF itself is not ordered per se, so - is this important to you, so you need this fixed? What is your usecase? Ref: https://stackoverflow.com/questions/10901084/how-can-i-sort-a-perl...

  • Andrea Grillini Andrea Grillini posted a comment on ticket #4

    I attach a csv file with just three records. Thanks! Andrea

  • Benedikt Hallinger Benedikt Hallinger modified ticket #2

    Field value detection failure

  • Benedikt Hallinger Benedikt Hallinger modified a comment on ticket #2

    I think, currently this cannot be fixed because of the way split() works. Look at how the separation of a field is exactly the same syntax as the combination $quote$delim: its both ", in this case. field1,", substring in field2",field3 ^^ ^^ This would need a major code overhaul, maybe by using Text::CSV. So probably cleaning the source data may be easier in your case.

  • Benedikt Hallinger Benedikt Hallinger posted a comment on ticket #2

    I think, currently this cannot be fixed because of the way split() works. Look at how the separation of a field is exactly the same syntax as the combination $quote$delim: its both ", in this case. This would need a major code overhaul, maybe by using Text::CSV. So probably cleaning the source data may be easier in your case.

  • Benedikt Hallinger Benedikt Hallinger posted a comment on ticket #2

    I can reproduce this, thanks for reporting. That is (from the code) expected behaviour and the only workaround currently is to avoid that combination. Or escape the comma after the quote: "\, and strip that afterwars using sed.

  • Benedikt Hallinger Benedikt Hallinger modified a comment on ticket #5

    Hello, yes, thats the way to go. objectClass is threatened like any other attribute, see the readme file or give the -h option. $ ./csv2ldif2.pl -b cn=test <<CSV cn,mail,objectClass,objectClass Foo Bar,foo.bar@example.com,inetOrgPerson,person Test Baz,test.baz@example.com,inetOrgPerson,person CSV dn: cn=Foo Bar,cn=test cn: Foo Bar mail: foo.bar@example.com objectClass: inetOrgPerson objectClass: person dn: cn=Test Baz,cn=test cn: Test Baz mail: test.baz@example.com objectClass: inetOrgPerson objectClass:...

  • Benedikt Hallinger Benedikt Hallinger posted a comment on ticket #4

    Do you please have test data for me to reproduce? My gut says, this is related to perls internal array handling. But that should not matter - LDIF content files are not ordered.

  • Benedikt Hallinger Benedikt Hallinger modified ticket #5

    How to add objectClass attributes?

  • Benedikt Hallinger Benedikt Hallinger posted a comment on ticket #5

    Hello, yes, thats the way to go. objectClass is threatened like any other attribute, see the readme file or give the -h option. $ ./csv2ldif2.pl -b cn=test <<LDIF cn,mail,objectClass,objectClass Foo Bar,foo.bar@example.com,inetOrgPerson,person Test Baz,test.baz@example.com,inetOrgPerson,person LDIF dn: cn=Foo Bar,cn=test cn: Foo Bar mail: foo.bar@example.com objectClass: inetOrgPerson objectClass: person dn: cn=Test Baz,cn=test cn: Test Baz mail: test.baz@example.com objectClass: inetOrgPerson objectClass:...

  • Andrea Grillini Andrea Grillini created ticket #5

    How to add objectClass attributes?

  • Andrea Grillini Andrea Grillini created ticket #4

    Output possibly changes while arguments remain unchanged in each run

  • Andrea Grillini Andrea Grillini created ticket #2

    Field value detection failure

  • Benedikt Hallinger Benedikt Hallinger committed [r18]

    * added new tool ldap-collate to toolbox

  • Benedikt Hallinger Benedikt Hallinger committed [r17]

    * Typo fix in README

  • Benedikt Hallinger Benedikt Hallinger committed [r16]

    * Updated readme

  • Benedikt Hallinger Benedikt Hallinger committed [r15]

    * Just added some more information to the help ...

  • Benedikt Hallinger Benedikt Hallinger posted a comment on a wiki page

    In case you get encoding problems with EXCEL exported CSV-files, you probably need...

  • Benedikt Hallinger Benedikt Hallinger modified ticket #3

    Could not get Attribute names from CSV line 1: .....

  • Benedikt Hallinger Benedikt Hallinger posted a comment on ticket #3

    Probably you already solved this. It is important that the first line has to contain...

  • Benedikt Hallinger Benedikt Hallinger modified ticket #2

    French character conversion

  • Benedikt Hallinger Benedikt Hallinger posted a comment on ticket #2

    Hi there, i know this is an old ticket, however it might be helpful to others. With...

  • csv2ldif2 csv2ldif2 released /csv2ldif2-1.1.tar.gz

  • 1 1 committed [r14]

    * Version 1.1 (2015-01-22)

  • csv2ldif2 csv2ldif2 released /csv2ldif-1.0.1.tar.gz

  • csv2ldif2 csv2ldif2 released /csv2ldif2-0.9.2.tar.gz

  • csv2ldif2 csv2ldif2 released /csv2ldif2-0.9.1.tar.gz

  • csv2ldif2 csv2ldif2 released /csv2ldif2-1.0.tar.gz

  • csv2ldif2 csv2ldif2 released /csv2ldif2-0.9.tar.gz

  • csv2ldif2 csv2ldif2 released /README.txt

  • 1 1 committed [r13]

    * extended readme

  • csv2ldif2 csv2ldif2 released /OldFiles/csv2ldif2-0.9.1.tar.gz

  • csv2ldif2 csv2ldif2 released /OldFiles/csv2ldif2-0.9.tar.gz

  • csv2ldif2 csv2ldif2 released /OldFiles/csv2ldif2-1.0.tar.gz

  • csv2ldif2 csv2ldif2 released /OldFiles/csv2ldif2-0.9.2.tar.gz

1