[Date Prev][Date Next]
Re: (ITS#4453) ldapdelete prints error message to stdout
--On Saturday, March 25, 2006 8:22 PM +0000 firstname.lastname@example.org wrote:
> Full_Name: W. Michael Petullo
> Version: 2.3.19
> OS: Fedora Core 5
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (220.127.116.11)
> 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
> go to standard error.
Or maybe the man page is wrong, and it should say it should go to standard
Principal Software Developer
ITS/Shared Application Services
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html