From 2a5473e14667ea3d244629a1bb414388c0ede7da Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 27 Apr 2021 12:52:26 +0200 Subject: do not try to search after the last page - saves an LDAP requests in these cases - prevents a Protocol Error logged on < 7.3 API (for backports) Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Exceptions/NoMoreResults.php | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 apps/user_ldap/lib/Exceptions/NoMoreResults.php (limited to 'apps/user_ldap/lib/Exceptions') diff --git a/apps/user_ldap/lib/Exceptions/NoMoreResults.php b/apps/user_ldap/lib/Exceptions/NoMoreResults.php new file mode 100644 index 00000000000..cf04a155bd9 --- /dev/null +++ b/apps/user_ldap/lib/Exceptions/NoMoreResults.php @@ -0,0 +1,30 @@ + + * + * @author Arthur Schiwon + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +namespace OCA\User_LDAP\Exceptions; + +class NoMoreResults extends \Exception { +} -- cgit v1.2.3