summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <gohr@cosmocode.de>2011-11-07 14:31:09 +0100
committerAndreas Gohr <gohr@cosmocode.de>2011-11-07 14:31:09 +0100
commit7f99c819166c15279a3214e3439be8efb77f7021 (patch)
treed9bf250795c7726828654dae2225e5cef68bf6e7
parent22ffffcf6892924895d9ad45f749a307d05e09e0 (diff)
downloadrpg-7f99c819166c15279a3214e3439be8efb77f7021.tar.gz
rpg-7f99c819166c15279a3214e3439be8efb77f7021.tar.bz2
do not query AD for empty user name
-rw-r--r--inc/auth/ad.class.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/auth/ad.class.php b/inc/auth/ad.class.php
index c3df2417b..4363cfb07 100644
--- a/inc/auth/ad.class.php
+++ b/inc/auth/ad.class.php
@@ -150,6 +150,8 @@ class auth_ad extends auth_basic {
global $conf;
if(!$this->_init()) return false;
+ if($user == '') return array();
+
$fields = array('mail','displayname','samaccountname','lastpwd','pwdlastset','useraccountcontrol');
// add additional fields to read