summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Exceptions
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-04-27 12:52:26 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-04-27 12:52:26 +0200
commit2a5473e14667ea3d244629a1bb414388c0ede7da (patch)
tree218cbb91b85083ea946b39edfb17221ac138d447 /apps/user_ldap/lib/Exceptions
parent9de6efd14e4fd8bbf3c9cacde7524b205ca7e93e (diff)
downloadnextcloud-server-2a5473e14667ea3d244629a1bb414388c0ede7da.tar.gz
nextcloud-server-2a5473e14667ea3d244629a1bb414388c0ede7da.zip
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 <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/Exceptions')
-rw-r--r--apps/user_ldap/lib/Exceptions/NoMoreResults.php30
1 files changed, 30 insertions, 0 deletions
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 @@
+<?php
+
+declare(strict_types=1);
+
+/**
+ * @copyright Copyright (c) 2021 Arthur Schiwon <blizzz@arthur-schiwon.de>
+ *
+ * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
+ *
+ * @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 <https://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace OCA\User_LDAP\Exceptions;
+
+class NoMoreResults extends \Exception {
+}