From 0941781d1ec4559a8c2e02c7a03504953ca7d74e Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 21 Dec 2017 14:29:56 +0100 Subject: [PATCH] don't show recurring msg when pages result was turned off and only as debug level otherwise. Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Access.php | 7 +++++-- apps/user_ldap/lib/Connection.php | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index b6674cf0332..06ccbd23ac6 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -1059,8 +1059,11 @@ class Access extends LDAPUtility implements IUserTools { $this->pagedSearchedSuccessful = true; } } else { - if(!is_null($limit)) { - \OCP\Util::writeLog('user_ldap', 'Paged search was not available', \OCP\Util::INFO); + if(!is_null($limit) && intval($this->connection->ldapPagingSize) !== 0) { + \OC::$server->getLogger()->debug( + 'Paged search was not available', + [ 'app' => 'user_ldap' ] + ); } } /* ++ Fixing RHDS searches with pages with zero results ++ diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index 5b5991e4995..1fbb8e3df1f 100644 --- a/apps/user_ldap/lib/Connection.php +++ b/apps/user_ldap/lib/Connection.php @@ -46,7 +46,7 @@ use OC\ServerNotAvailableException; * @property boolean turnOnPasswordChange * @property boolean hasPagedResultSupport * @property string[] ldapBaseUsers - * @property int|string ldapPagingSize holds an integer + * @property int|null ldapPagingSize holds an integer * @property bool|mixed|void ldapGroupMemberAssocAttr * @property string ldapUuidUserAttribute * @property string ldapUuidGroupAttribute -- 2.39.5