summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-03-05 13:47:03 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-03-05 13:47:03 +0100
commitb08894ba7727f9bce8d0e41d76ad5d2ae4a3b7e3 (patch)
treeac18cc5a11eba1a12ac8923bfaf9c9ffbc716436 /apps/user_ldap
parent2b7ff7273d0c791a3b7eabe90146915f063a8339 (diff)
downloadnextcloud-server-b08894ba7727f9bce8d0e41d76ad5d2ae4a3b7e3.tar.gz
nextcloud-server-b08894ba7727f9bce8d0e41d76ad5d2ae4a3b7e3.zip
LDAP: error codes can be negative, too
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/access.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 05249b8f163..d409591283c 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -650,7 +650,7 @@ abstract class Access {
$linkResources = array_pad(array(), count($base), $link_resource);
$sr = ldap_search($linkResources, $base, $filter, $attr);
$error = ldap_errno($link_resource);
- if(!is_array($sr) || $error > 0) {
+ if(!is_array($sr) || $error != 0) {
\OCP\Util::writeLog('user_ldap',
'Error when searching: '.ldap_error($link_resource).' code '.ldap_errno($link_resource),
\OCP\Util::ERROR);