Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15228 - pam_ldap/nss_ldap truncates password in /etc/ldap.secret
Summary: pam_ldap/nss_ldap truncates password in /etc/ldap.secret
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Donny Davies (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-06 14:50 UTC by Mats Loman
Modified: 2003-02-09 00:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ;)