[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldapsearch wrapping at 76 chars

> Hi all,
> in retrieving an attribute value of longer than 76 chars (namely an
> automounter map entry) with ldapsearch, we ran into this barrier, which we
> now found out is hard coded. Upping the limit  in ldif.h "handled" our
> problem, but that probably introduces problems elsewhere, because of going
> "off standard", not so ?

The standard mandates how to wrap, not where; ldapsearch wraps at 76 cols
to be nice with many terminals while not breaking the standard.

> 1. Any reason to not introduce a switch to toggle wrapping ?

See <http://www.openldap.org/its/index.cgi/Contrib?id=1885>

> 2. Or is there another recognized methods to retrieve the raw attribute
> string from the shell ?

Many people posted many different scripts in many different languages
(including, I believe, shell by way of awk) that do it.  I cannot find
them right now, and it's hard to say if it would take longer to search the
archives or to write one from scratch.


Pierangelo Masarati

    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497