summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-03-19 00:23:59 +0100
committerArthur Schiwon <blizzz@owncloud.com>2013-03-19 14:40:30 +0100
commit0f4e02b6fcebba6e8ac53f2cb451e8751abeece7 (patch)
tree5ac481b8d18b2a859e25989b0f1da19678bf78e8
parent50d0f48ee4d03624232e658d412b29c2502bf204 (diff)
downloadnextcloud-server-0f4e02b6fcebba6e8ac53f2cb451e8751abeece7.tar.gz
nextcloud-server-0f4e02b6fcebba6e8ac53f2cb451e8751abeece7.zip
LDAP: avoid irritating log output
-rw-r--r--apps/user_ldap/lib/access.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 90d026962db..6d32e9b2ab0 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -62,7 +62,10 @@ abstract class Access {
$dn = $this->DNasBaseParameter($dn);
$rr = @ldap_read($cr, $dn, $filter, array($attr));
if(!is_resource($rr)) {
- \OCP\Util::writeLog('user_ldap', 'readAttribute failed for DN '.$dn, \OCP\Util::DEBUG);
+ if(!empty($attr)) {
+ //do not throw this message on userExists check, irritates
+ \OCP\Util::writeLog('user_ldap', 'readAttribute failed for DN '.$dn, \OCP\Util::DEBUG);
+ }
//in case an error occurs , e.g. object does not exist
return false;
}