Closed (won't fix)
Project:
LDAP integration
Version:
5.x-1.5
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2009 at 20:13 UTC
Updated:
6 Aug 2011 at 18:20 UTC
I am getting white screen when a drupal users (not ldap users) try to login with wrong password. If i tries to login as LDAP user with wrong password then there is no issue.
I have gone though the "LDAP integration" module code and i found line 702 in ldapauth.module file commented for some purpose
// $ldapauth_ldap = new LDAPInterface();
I was able to solve this bug by removing the comments of above line .
Is this error happened because of variable " global $ldapauth_ldap; " not working?
Can anybody please have your view on it?
Comments
Comment #1
sanoopuio commentedThis is function code
function _ldapauth_init($config) {
global $ldapauth_ldap;
$row = db_fetch_object(db_query("SELECT * FROM {ldapauth} WHERE name = '%s'", $config));
// $ldapauth_ldap = new LDAPInterface();
$ldapauth_ldap->setOption('name', $row->name);
$ldapauth_ldap->setOption('server', $row->server);
$ldapauth_ldap->setOption('port', $row->port);
$ldapauth_ldap->setOption('tls', $row->tls);
$ldapauth_ldap->setOption('encrypted', $row->encrypted);
$ldapauth_ldap->setOption('basedn', $row->basedn);
$ldapauth_ldap->setOption('user_attr', $row->user_attr);
$ldapauth_ldap->setOption('mail_attr', $row->mail_attr);
return;
}
Comment #2
johnbarclay commentedClosing 5.x issues to clean out issue queue.