Bug 797410

Summary: nss_ldap-253-49 fails to bind when ldap.secret does not contain a newline
Product: Red Hat Enterprise Linux 5 Reporter: Greg Bock <gbock>
Component: nss_ldapAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED ERRATA QA Contact: David Spurek <dspurek>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.8CC: bgollahe, dpal, dspurek, ebenes, emmanuel.borlet, jhrozek, jplans, ksrot, linux, prc
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nss_ldap-253-51.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-08 07:40:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
A proposed patch none

Description Greg Bock 2012-02-25 17:01:33 UTC
Description of problem:

nss_ldap-253-49 fails to bind when ldap.secret does not contain a newline. This appears to be due to work done on the configuration parser in nss_ldap-253-bigparse.patch between versions 253-42.el5_7.4 and 253-49.


Version-Release number of selected component (if applicable):
nss_ldap-253-49


Steps to Reproduce:

1. Create the contents of /etc/ldap.secret without a newline (echo -n PASSWORD > /etc/ldap.secret).

  
Actual results:
Operations against nss_ldap fail to bind to the ldap server. 
id: nss_ldap: could not search LDAP server - Server is unavailable

Expected results:
Previously working configurations should continue to work.

Comment 1 Jakub Hrozek 2012-02-27 08:50:23 UTC
Thank you for the bug report. This is indeed a regression caused by the config parser.

Comment 3 Jakub Hrozek 2012-03-26 17:11:29 UTC
*** Bug 806951 has been marked as a duplicate of this bug. ***

Comment 6 Jakub Hrozek 2012-07-25 12:05:41 UTC
Created attachment 600285 [details]
A proposed patch

do_readline wasn't returning a proper return code when the last line did not contain a newline.

Comment 10 errata-xmlrpc 2013-01-08 07:40:39 UTC
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-2013-0085.html