bearded / ruby-ldap

Ruby/LDAP is an extension library for Ruby. It provides the interface to some LDAP libraries (e.g. OpenLDAP, Netscape SDK and Active Directory). The common API for application development is described in RFC1823 and is supported by Ruby/LDAP.
http://rubyforge.org/projects/ruby-ldap/
Other
66 stars 35 forks source link

Parsing error with CRLF #38

Closed doppelreim closed 8 years ago

doppelreim commented 8 years ago

Parsing a file with windows line endings (CRLF) fails with the error Improperly continued line:.

According to https://tools.ietf.org/html/rfc2849:

SEP = (CR LF / LF)

I assume this is because the regex at https://github.com/bearded/ruby-ldap/blob/0.9.17/lib/ldap/ldif.rb#L195 does not match \r\n.

Maybe changing it to /\A\s*\z/ would help?

bearded commented 8 years ago

Please try a version 0.9.19.

doppelreim commented 8 years ago

Yeah! Thanks a lot :)