[Pkg-openldap-devel] Bug#474021: Bug#474021: Bug#474021: ldap-utils: ldapsearch should send errors to stderr
Quanah Gibson-Mount
quanah at zimbra.com
Thu Apr 3 00:19:02 UTC 2008
--On Wednesday, April 02, 2008 5:07 PM -0700 Russ Allbery <rra at debian.org>
wrote:
>> 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.
And to be very clear, ldapsearch already sends its errors to stderr:
[quanah at freelancer ~]$ ldapsearch -x -h bogus -b "" 1>a 2>b
[quanah at freelancer ~]$ cat b
ldap_bind: Can't contact LDAP server (-1)
[quanah at freelancer ~]$ cat a
[quanah at freelancer ~]$
--Quanah
--
Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra :: the leader in open source messaging and collaboration
More information about the Pkg-openldap-devel
mailing list