diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-10-27 11:02:53 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-10-27 12:19:08 +0200 |
commit | 67cd268df92d396f13555e426d2486ba98483a1f (patch) | |
tree | f81d24cbeb81618d76802ca938b74f0ce6b92b01 /apps | |
parent | ee6fc22d4b1cfd3b16433aeb457cef2b625e02d7 (diff) | |
download | nextcloud-server-67cd268df92d396f13555e426d2486ba98483a1f.tar.gz nextcloud-server-67cd268df92d396f13555e426d2486ba98483a1f.zip |
LDAP: debug messaged
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index e95bd24fbdd..011c7d55368 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -120,21 +120,22 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface { )); \OCP\Util::writeLog('user_ldap', 'getUsers: Get users filter '.$filter, \OCP\Util::DEBUG); + \OCP\Util::writeLog('user_ldap', 'getUsers: Options: search '.$search.' limit '.$limit.' offset '.$offset, \OCP\Util::INFO); //do the search and translate results to owncloud names $ldap_users = $this->fetchListOfUsers($filter, array($this->connection->ldapUserDisplayName, 'dn'), $limit, $offset); $ldap_users = $this->ownCloudUserNames($ldap_users); + \OCP\Util::writeLog('user_ldap', 'getUsers: '.count($ldap_users). ' Users found', \OCP\Util::INFO); + //if bigger, then paged search is not supported if(!$this->getPagedSearchResultState()) { \OCP\Util::writeLog('user_ldap', 'getUsers: We got old-style results', \OCP\Util::DEBUG); //if not supported, a 'normal' search has run automatically, we just need to get our slice of the cake. And we cache the general search, too $this->connection->writeToCache('getUsers-'.$search, $ldap_users); $ldap_users = array_slice($ldap_users, $offset, $limit); - } else { - //debug message only - \OCP\Util::writeLog('user_ldap', 'getUsers: We got paged results', \OCP\Util::DEBUG); } $this->connection->writeToCache($cachekey, $ldap_users); + \OCP\Util::writeLog('user_ldap', 'getUsers: '.count($ldap_users). ' Users returned', \OCP\Util::DEBUG); return $ldap_users; } |