[Date Prev][Date Next]
Re: (ITS#6202) adding command line option to disable line breaking in ldif output
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#6202) adding command line option to disable line breaking in ldif output
- From: firstname.lastname@example.org
- Date: Wed, 22 Jul 2009 03:39:59 GMT
- Auto-submitted: auto-generated (OpenLDAP-ITS)
> On Thu, Jul 09, Michael Str=F6der wrote:
>>> I want to do an enhancement request for ldapsearch, because it insert a=
>>> break after 78 characters.
>>> Many people like me use the ldapsearch command in shell script and have=
>>> workaround this issue.
>>> Maybe it make sense to add a command line option to deactivate this lin=
> e breaks.
>> I'd rather recommend to use a decent scripting language with LDAP and/or
>> LDIF modules than using ldapsearch in shell scripts. This gives better
>> control over data and error handling.
> there are several ldapsearch binaries from other distributor, which
> includes an option -T for this concern.
> so why doesn't ldapsearch from openldap inlcude this option.
> It doesn't break any rfc and historcal implementation and as far as I
> can see (with google), there are many admins who have to workaround this
> with a little perl script.
> I think it must be a little diff, with a few lines
> I can write it, but is someone willing to inlcude it in the upstream
> versions ?
It has already been written, see ITS#6149. Closing this ITS as a dup.
Since the LDIF spec says that lines MAY be folded, any script that processes
LDIF MUST be able to handle folded lines correctly. As such, there is nothing
to gain from changing things at this late date, IMO. Other folks may have
different opinions, but I don't think the ITS is the place to discuss this.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/