Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 695754 - rpc.yppasswd returns epmty string instead of error messages
rpc.yppasswd returns epmty string instead of error messages
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ypserv (Show other bugs)
5.6
Unspecified Unspecified
low Severity low
: rc
: ---
Assigned To: Honza Horak
qe-baseos-daemons
: Patch
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-12 11:17 EDT by Karel Volný
Modified: 2012-02-21 00:53 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-21 00:53:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
proposed patch (744 bytes, patch)
2011-04-12 12:16 EDT, Honza Horak
no flags Details | Diff
proposed patch that adds more info to error messages (1.04 KB, patch)
2011-10-17 09:38 EDT, Honza Horak
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0205 normal SHIPPED_LIVE ypserv bug fix and enhancement update 2012-02-20 09:53:39 EST

  None (edit)
Description Karel Volný 2011-04-12 11:17:47 EDT
Description of problem:
I'm unable to get reasonable error messages from rpc.yppasswdd, see below

Version-Release number of selected component (if applicable):
ypserv-2.19-5.el5_6.1

How reproducible:
always

Steps to Reproduce:
1. setup NIS
2. run rpc.yppasswd --debug on the server
3. try to change user password via yppasswd

  
Actual results:
.qa.[root@x86-64-5s-m1 ~]# rpc.yppasswdd --debug -x /usr/lib64/yp/bz681699-test
rpc.yppasswdd - NYS YP server version 2.19

yppasswdproc_pwupdate("bz681699") [From: 10.16.112.103:704]
        oldpass..: heslo1
        pw_name..: bz681699
        pw_passwd: $1$lH91as4C$EP.HfSYBPC1yjjoYN9Urs1
        pw_gecos.: 
        pw_dir...: /home/bz681699
        pw_shell.: /bin/bash
fgets() call failed.
 failed.  Change request: bz681699 o:heslo1 p:$1$lH91as4C$EP.HfSYBPC1yjjoYN9Urs1 
Response was 



Expected results:
[what?] failed.
Response was [what?]

Additional info:
Comment 1 Honza Horak 2011-04-12 12:16:26 EDT
Created attachment 491526 [details]
proposed patch

This failure is most probably caused by empty output of the external script, so fgets() returns NULL, same as there is an error in reading. 

However, feof() and ferror() hangs in this case, so I can't use them to distinguish what exactly is wrong. The proposed patch describes the problem a bit better, I think it could be good enough for this failure.

Any comments or improvement suggestions are welcome.
Comment 9 errata-xmlrpc 2012-02-21 00:53:32 EST
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/RHBA-2012-0205.html

Note You need to log in before you can comment on or make changes to this bug.