Closed (fixed)
Project:
LDAP integration
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
24 Nov 2009 at 15:42 UTC
Updated:
17 Aug 2011 at 04:51 UTC
The LDAP Authentication module trims white space from the password field. This means that any user having leading or trailing whitespace in their password will never be able to authenticate.
The solution is very simple: remove the trim() call in line 276 of ldapauth.module:
function ldapauth_authenticate($form_values = array()) {
global $user, $_ldapauth_ldap;
$name = $form_values['name'];
// INCORRECT - do not assume passwords will never start/end with white space:
// $pass = trim($form_values['pass']);
$pass = $form_values['pass'];
/* remainder of method trimmed */
Best regards, and thanks for this very useful module!
Olivier Biot
Comments
Comment #1
johnbarclay commented