Bug 1135427
Summary: | kadmin.local -q with wrong value in -e option doesn't return nonzero return code | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | David Spurek <dspurek> | |
Component: | krb5 | Assignee: | Robbie Harwood <rharwood> | |
Status: | CLOSED ERRATA | QA Contact: | Marek Marusic <mmarusic> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | 7.0 | CC: | dpal, ghudson, mmarusic, pkis, rharwood | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
URL: | http://krbdev.mit.edu/rt/Ticket/Display.html?id=7991 | |||
Whiteboard: | ||||
Fixed In Version: | krb5-1.14.1-1.el7 | Doc Type: | No Doc Update | |
Doc Text: |
undefined
|
Story Points: | --- | |
Clone Of: | ||||
: | 1135429 (view as bug list) | Environment: | ||
Last Closed: | 2016-11-03 20:22:07 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1135429, 1205796 |
Description
David Spurek
2014-08-29 09:49:55 UTC
I don't see that kadmin makes any guarantees about its exit status. Its implementation appears to discard any errors encountered while processing commands, so we're potentially talking about much more than just these two commands and the -e flag. (In reply to Nalin Dahyabhai from comment #1) > I don't see that kadmin makes any guarantees about its exit status. Its > implementation appears to discard any errors encountered while processing > commands, so we're potentially talking about much more than just these two > commands and the -e flag. Just for the log: One idea I had was to implement kadminsh, a kadmin version based on AT&T AST's libshell (which provides a POSIX shell (ksh93) as shared library) and implement the kadmin subcommands as shell builtins... that would allow getting the proper return status for each subcommand and even add control over the code flow when multiple kadmin subcommands are used. Problem is getting time allocated for this project... implementing it is easy but getting the neccesary infrastructure into Fedora is a man-week of work. See http://krbdev.mit.edu/rt/Ticket/Display.html?id=7991 for a proposed upstream enhancement to address this issue (not using libshell). If memory serves, this landed in the 1.14 we're passing around. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2591.html |