summaryrefslogtreecommitdiffstats
path: root/apps
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:31:05 +0100
commitd58457f4a5acb09d89b30618f91f7ec9d8af7265 (patch)
treea430e847233051f3fea10b194e6b1de4b0ecfaab /apps
parente10a2f222d82835b62bb6ec844ae3e912a4d10a2 (diff)
downloadnextcloud-server-d58457f4a5acb09d89b30618f91f7ec9d8af7265.tar.gz
nextcloud-server-d58457f4a5acb09d89b30618f91f7ec9d8af7265.zip
LDAP: avoid irritating log output
Diffstat (limited to 'apps')
-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 29dc8c3c016..b8c601aa112 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -59,7 +59,10 @@ abstract class Access {
$dn = $this->DNasBaseParameter($dn);
$rr = @ldap_read($cr, $dn, 'objectClass=*', 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;
}