[phpldapadmin] [ phpldapadmin-Bugs-3392644 ] Cannot authenticate if password starts or ends with spaces

SourceForge.net <[email protected]> Tue, 16 Aug 2011 15:52:03 -0300
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Bugs item #3392644, was opened at 2011-08-16 15:52
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=3392644&group_id=61828

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.2.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot authenticate if password starts or ends with spaces

Initial Comment:
Hello,

A password like "12345678 " cannot be authenticated in phpldapadmin. All fields get trimmed (including password).
Please, remove all references of trim in functions get_request and blowfish_decrypt (and maybe blowfish_encrypt).
The first function removes the space when it is reading the fields. The last one is used to retrieve the encrypted password from session (even on the first bind login)

Thanks,

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=3392644&group_id=61828

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/