phpBB

Code Changes

File: phpbb/auth/provider/ldap.php

  Unmodified   Added   Modified   Removed
Line 99Line 99

@ldap_close($ldap);



@ldap_close($ldap);


		if (!is_array($result) || sizeof($result) < 2)

		if (!is_array($result) || count($result) < 2)

		{
return sprintf($this->user->lang['LDAP_NO_IDENTITY'], $this->user->data['username']);
}

		{
return sprintf($this->user->lang['LDAP_NO_IDENTITY'], $this->user->data['username']);
}

Line 192Line 192

$ldap_result = @ldap_get_entries($ldap, $search);



$ldap_result = @ldap_get_entries($ldap, $search);


		if (is_array($ldap_result) && sizeof($ldap_result) > 1)

		if (is_array($ldap_result) && count($ldap_result) > 1)

		{
if (@ldap_bind($ldap, $ldap_result[0]['dn'], htmlspecialchars_decode($password)))
{

		{
if (@ldap_bind($ldap, $ldap_result[0]['dn'], htmlspecialchars_decode($password)))
{