[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#650366: ldapsearch without line wrappings



package: debian-edu-config
severity: normal
version: svn-r74294

Hi all,

I recently discovered a problem when parsing ldapsearch output. Ldapsearch wraps lines longer than 78 chars (or so).

This article describes how to circumvent this:
http://dbocklandt.be/networking/ldapsearch-without-all-the-line-wrapping/

<quote>
##
## removes line wrappings: perl -p00e 's/\r?\n //g'
##

# Example
ldapsearch -xLLL -h oh.mighty.ldapserver -b dc=example,dc=com | perl -p00e 's/\r?\n //g'
</quote>

The change should at least be applied to gosa-create in

  /usr/share/debian-edu-config/tools

But maybe there are more places where to fix this... The problem becomes evident if you have long DN strings in LDAP (that is: a versatile OU structure in the LDAP DIT).

Greets,
Mike

--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

GnuPG Key ID 0xB588399B
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgpAFOOZYja1R.pgp
Description: Digitale PGP-Unterschrift


Reply to: