[Date Prev][Date Next]
Re: (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) (18.104.22.168)
> 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.
It looks like there's more problems here; when the "verbose" option is
used ldapmodify and ldapdelete print a message that the operation was
completed after the request was successfully sent to the server, but
before reading the server's reply. I would expect that the "completed"
message should not be printed until after we know the server
successfully processed the request.
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/