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

sanoopuio’s picture

This 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;
}

johnbarclay’s picture

Status: Active » Closed (won't fix)

Closing 5.x issues to clean out issue queue.