Menu

#18 be more lenient in LDIFParser

None
closed
None
5
2016-12-09
2016-02-03
No

hello,

from the "be lenient with what you parse, be strict with what you write" departement, I attach a patch which support ldif input with several blank and/or comment lines between objects
I don't know if this behavior is correct wrt the LDIF standard, but it is useful for me, because I have LDIF files with comments written by humans, e.g:

# silly example
dn: uid=one,dc=tld
uid: one

# another silly example
dn: uid=two,dc=tld
uid: two

with the current parser, uid=two is not read because there are two "blanks" lines before

best regards,
Jephte CLAIN

1 Attachments

Discussion

  • Michael Ströder

    • status: open --> closed
    • assigned_to: Michael Ströder
    • Group: -->
     
  • Michael Ströder

    was fixed in 2.4.26

     

Log in to post a comment.