Bug 707133
Summary: | Successful "ipa-nis-manage enable" command has exit status as 1. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Gowrishankar Rajaiyan <grajaiya> |
Component: | ipa | Assignee: | Rob Crittenden <rcritten> |
Status: | CLOSED ERRATA | QA Contact: | Chandrasekar Kannan <ckannan> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 6.1 | CC: | benl, dpal, jgalipea |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ipa-2.1.0-1.el6 | Doc Type: | Bug Fix |
Doc Text: |
Cause: The ipa-nis-manage command doesn't return 0 on success.
Consequence: It is not possible to script the command and rely on the return value to determine success/failure.
Fix: Handle the case where it has never been enabled from it has been enabled but is currently disabled. We were doing too much work in the latter case causing the invalid return value.
Result: Return 0 on success and 1 on failure as documented.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2011-12-06 18:22:36 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Gowrishankar Rajaiyan
2011-05-24 07:36:41 UTC
master: 5f0adc3fbe5b193a57b05eed70b9f59463d9d9da ipa-2-0: 01eec29431086c11f209fc1f69380d3b8fae36f3 verified: ipa-server-2.1.1-4.el6.x86_64 # ipa-nis-manage enable Directory Manager password: Enabling plugin This setting will not take effect until you restart Directory Server. The rpcbind service may need to be started. # echo $? 0 # ipa-nis-manage enable Directory Manager password: Incorrect password # echo $? 1 Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: The ipa-nis-manage command doesn't return 0 on success. Consequence: It is not possible to script the command and rely on the return value to determine success/failure. Fix: Handle the case where it has never been enabled from it has been enabled but is currently disabled. We were doing too much work in the latter case causing the invalid return value. Result: Return 0 on success and 1 on failure as documented. 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. http://rhn.redhat.com/errata/RHSA-2011-1533.html |