Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 15228

Summary: pam_ldap/nss_ldap truncates password in /etc/ldap.secret
Product: Gentoo Linux Reporter: Mats Loman <mats.loman>
Component: [OLD] LibraryAssignee: Donny Davies (RETIRED) <woodchip>
Status: RESOLVED WORKSFORME    
Severity: major CC: mjc
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mats Loman 2003-02-06 14:50:57 UTC
The password stored in /etc/ldap.secret is not correctly sent to the LDAP server. The last character 
is lost.  
 
If i add a character after the password stored in /etc/ldap.secret it works. 
 
I used ehtereal to see the LDAP transmissions, it verified that the last character in the password 
was missing. 

Reproducible: Always
Steps to Reproduce:
1. Insert password in /etc/ldap.secret 
2. Try to access ldap database with: getent passwd (for example) Nothing is returned from the ldap 
database. 
3. Add an extra character in /etc/ldap.secret after the password. 
4. Try with getent passwd (for example). Entries from the LDAP server is returned. 
 
 
Actual Results:  
Se above 

Expected Results:  
Se above
Comment 1 Mats Loman 2003-02-06 17:43:47 UTC
 
Here is the real problem:  
 
from: /usr/share/doc/nss_ldap-202/README.gz 
 
If using /etc/ldap.secret, it must have a newline at the end 
of the secret. 
 
I had no newline in the file. 
 
Therefore this is no real bu I guess... 
 
Comment 2 Donny Davies (RETIRED) gentoo-dev 2003-02-09 00:42:59 UTC
love those README files ;)