Bug 797410 - nss_ldap-253-49 fails to bind when ldap.secret does not contain a newline
Summary: nss_ldap-253-49 fails to bind when ldap.secret does not contain a newline
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: nss_ldap
Version: 5.8
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Nalin Dahyabhai
QA Contact: David Spurek
URL:
Whiteboard:
: 806951 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-25 17:01 UTC by Greg Bock
Modified: 2018-11-29 19:22 UTC (History)
10 users (show)

Fixed In Version: nss_ldap-253-51.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-08 07:40:39 UTC
Target Upstream Version:


Attachments (Terms of Use)
A proposed patch (601 bytes, patch)
2012-07-25 12:05 UTC, Jakub Hrozek
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0085 0 normal SHIPPED_LIVE nss_ldap bug fix update 2013-01-07 15:26:47 UTC

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


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