aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth/auth_ldap.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/auth/auth_ldap.php')
-rw-r--r--phpBB/includes/auth/auth_ldap.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/auth/auth_ldap.php b/phpBB/includes/auth/auth_ldap.php
index 1b89a02d20..13b3d2b0b1 100644
--- a/phpBB/includes/auth/auth_ldap.php
+++ b/phpBB/includes/auth/auth_ldap.php
@@ -34,7 +34,7 @@ function login_ldap(&$username, &$password)
{
@ldap_close($ldap);
- $sql ='SELECT user_id, username, user_password, user_passchg, user_email, user_active
+ $sql ='SELECT user_id, username, user_password, user_passchg, user_email, user_type
FROM ' . USERS_TABLE . "
WHERE username = '" . $db->sql_escape($username) . "'";
$result = $db->sql_query($sql);
@@ -42,7 +42,7 @@ function login_ldap(&$username, &$password)
if ($row = $db->sql_fetchrow($result))
{
$db->sql_freeresult($result);
- return (empty($row['user_active'])) ? 0 : $row;
+ return ($row['user_type'] == USER_INACTIVE || $row['user_type'] == USER_IGNORE) ? 0 : $row;
}
}
}