diff options
Diffstat (limited to 'app/Auth/Ldap.php')
-rw-r--r-- | app/Auth/Ldap.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Auth/Ldap.php b/app/Auth/Ldap.php index 4f20998f..5bb60275 100644 --- a/app/Auth/Ldap.php +++ b/app/Auth/Ldap.php @@ -104,7 +104,7 @@ class Ldap extends Base { $ldap = $this->connect(); - if ($this->bind($ldap, $username, $password)) { + if (is_resource($ldap) && $this->bind($ldap, $username, $password)) { return $this->search($ldap, $username, $password); } |