[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#4453) ldapdelete prints error message to stdout
--On Saturday, March 25, 2006 8:22 PM +0000 openldap@flyn.org wrote:
> Full_Name: W. Michael Petullo
> Version: 2.3.19
> OS: Fedora Core 5
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (63.13.194.34)
>
>
> The ldapdelete command prints its error message to standard out.
> However, the manpage states, "Exit status is 0 if no errors occur.
> Errors result in a non-zero exit status and a diagnostic message being
> written to standard error."
>
> 1. Try to delete an LDAP object that does not exist; execute a command
> like: ldapdelete -x -D cn=Manager,dc=flyn,dc=org -W "cn=Domain
> Users,ou=Group,dc=flyn,dc=org" 2> /dev/null
>
> 2. Execute "echo $?" to confirm exit status is non-zero.
>
> 3. Notice that ldapdelete printed error to standard out. The following
> was printed:
> Delete Result: No such object (32)
> Matched DN: ou=group,dc=flyn,dc=org
>
> The exit status was non-zero. According to the manpage the error message
> should
> go to standard error.
Or maybe the man page is wrong, and it should say it should go to standard
out.
--Quanah
--
Quanah Gibson-Mount
Principal Software Developer
ITS/Shared Application Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html