[Pkg-openldap-devel] Bug#474021: Bug#474021: ldap-utils: ldapsearch should send errors to stderr

Russ Allbery rra at debian.org
Thu Apr 3 00:07:20 UTC 2008


Chris Adams <chris at improbable.org> writes:

> Package: ldap-utils
> Version: 2.3.30-5
> Severity: minor
>
> ldapsearch sends error messages in its data stream:
>
> Search result
> search: 2
> result: 0 Success
>
> # numResponses: 775
> # numEntries: 774
>
> It would be nice if something went to stderr in case stdout has been
> redirected so an abnormal result was obvious.

This is controlled by the -L flag.  -LLL will give you pure LDIF without
any additional messages and is usually what you want for scripts.

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>





More information about the Pkg-openldap-devel mailing list