diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-03-19 00:23:59 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-03-19 14:31:05 +0100 |
commit | d58457f4a5acb09d89b30618f91f7ec9d8af7265 (patch) | |
tree | a430e847233051f3fea10b194e6b1de4b0ecfaab /apps | |
parent | e10a2f222d82835b62bb6ec844ae3e912a4d10a2 (diff) | |
download | nextcloud-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.php | 5 |
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; } |