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

(ITS#4453) ldapdelete prints error message to stdout

Full_Name: W. Michael Petullo
Version: 2.3.19
OS: Fedora Core 5
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

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
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.