Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-03-29 18:00:38 +0300
committerCôme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com>2022-03-30 17:43:09 +0300
commit6c7ba01dfedaf90855c8a5f3915cbc7a07c1a70b (patch)
treed610a793eb6078b93fd00e5c005308b79c0599cb /apps/user_ldap
parent52b57eb753807b64f02bf8827d00647f60f3c019 (diff)
Adapt max length limit in AbstactMapping to match database
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/Mapping/AbstractMapping.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Mapping/AbstractMapping.php b/apps/user_ldap/lib/Mapping/AbstractMapping.php
index f26b54a37e8..9026b8cfb78 100644
--- a/apps/user_ldap/lib/Mapping/AbstractMapping.php
+++ b/apps/user_ldap/lib/Mapping/AbstractMapping.php
@@ -355,9 +355,9 @@ abstract class AbstractMapping {
* @return bool
*/
public function map($fdn, $name, $uuid) {
- if (mb_strlen($fdn) > 4096) {
+ if (mb_strlen($fdn) > 4000) {
\OC::$server->getLogger()->error(
- 'Cannot map, because the DN exceeds 4096 characters: {dn}',
+ 'Cannot map, because the DN exceeds 4000 characters: {dn}',
[
'app' => 'user_ldap',
'dn' => $fdn,