aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/auth/auth_ldap.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-03-14 12:28:08 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-03-14 12:28:08 +0000
commit217dc8e6d53beb62e6aa5ccaed68b86a9282d88e (patch)
treeb096f1d374f1da9abc92b31e0819e9b8e840d7fc /phpBB/includes/auth/auth_ldap.php
parent7c1b3ed62aeab31b4f226600a0585226ed44bfea (diff)
downloadforums-217dc8e6d53beb62e6aa5ccaed68b86a9282d88e.tar
forums-217dc8e6d53beb62e6aa5ccaed68b86a9282d88e.tar.gz
forums-217dc8e6d53beb62e6aa5ccaed68b86a9282d88e.tar.bz2
forums-217dc8e6d53beb62e6aa5ccaed68b86a9282d88e.tar.xz
forums-217dc8e6d53beb62e6aa5ccaed68b86a9282d88e.zip
#22525
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8432 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/auth/auth_ldap.php')
-rw-r--r--phpBB/includes/auth/auth_ldap.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/includes/auth/auth_ldap.php b/phpBB/includes/auth/auth_ldap.php
index 472927ace3..d49662fb2d 100644
--- a/phpBB/includes/auth/auth_ldap.php
+++ b/phpBB/includes/auth/auth_ldap.php
@@ -104,8 +104,18 @@ function login_ldap(&$username, &$password)
if (!$password)
{
return array(
- 'status' => LOGIN_BREAK,
+ 'status' => LOGIN_ERROR_PASSWORD,
'error_msg' => 'NO_PASSWORD_SUPPLIED',
+ 'user_row' => array('user_id' => ANONYMOUS),
+ );
+ }
+
+ if (!$username)
+ {
+ return array(
+ 'status' => LOGIN_ERROR_USERNAME,
+ 'error_msg' => 'LOGIN_ERROR_USERNAME',
+ 'user_row' => array('user_id' => ANONYMOUS),
);
}