Bug 161121

Summary: nss_ldap should strip newline from ldap.secret
Product: [Fedora] Fedora Reporter: Pierre Ossman <pierre-bugzilla>
Component: nss_ldapAssignee: Nalin Dahyabhai <nalin>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 235 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-09 15:01:23 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 Pierre Ossman 2005-06-20 17:36:34 UTC
Description of problem:
If the password in ldap.secret is terminated by a newline, this newline gets
sent to the server causing the bind to fail. Since every operation in nss_ldap
now uses the privileged bind all users are blocked from logging in.

It's fairly common that editors add a trailing newline so nss_ldap really should
handle this gracefully.


Version-Release number of selected component (if applicable):
234-4

How reproducible:
Every time.


Steps to Reproduce:
1. Configure a rootbinddn with a ldap.secret
2. Try getent passwd
  
Actual results:
Only local entries are shown.

Expected results:
All entries, including those on the LDAP server, are shown.

Comment 1 Nalin Dahyabhai 2005-09-09 15:01:23 UTC
This was fixed upstream in nss_ldap 235, closing because Raw Hide currently
features nss_ldap-240-2.