[Date Prev][Date Next]
Re: (ITS#7424) Accept patch? Add option for not folding ldapsearch LDIF output lines
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#7424) Accept patch? Add option for not folding ldapsearch LDIF output lines
- From: email@example.com
- Date: Sun, 28 Oct 2012 20:37:15 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
No such option in OpenLDAP 2.4.23 as delivered with RHEL 6.
man ldapsearch shows the only general option documented
On 10/28/2012 3:45 PM, Pierangelo Masarati wrote:
> Use ldapsearch -o ldif-wrap=no instead.
>> URL: ftp://ftp.openldap.org/incoming/
>> Submission from: (NULL) (184.108.40.206)
>> RFC 2849 states:
>> 2) Any non-empty line, including comment lines, in an LDIF file
>> MAY be folded by inserting a line separator (SEP) and a SPACE.
>> Folding MUST NOT occur before the first character of the line.
>> In other words, folding a line into two lines, the first of
>> which is empty, is not permitted. Any line that begins with a
>> single space MUST be treated as a continuation of the previous
>> (non-empty) line. When joining folded lines, exactly one space
>> character at the beginning of each continued line must be
>> discarded. Implementations SHOULD NOT fold lines in the middle
>> of a multi-byte UTF-8 character.
>> OpenLDAP (ldapsearch at least) has taken implemented that folding
>> behavior for LDIF output.
>> This causes trouble for anyone trying to use 'ldapsearch | grep
>> for one simple example.
>> Would you accept a patch to allow an option which disables line folding?