summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-03-29 17:00:38 +0200
committerCôme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com>2022-03-30 14:43:09 +0000
commit6c7ba01dfedaf90855c8a5f3915cbc7a07c1a70b (patch)
treed610a793eb6078b93fd00e5c005308b79c0599cb /apps/user_ldap/lib
parent52b57eb753807b64f02bf8827d00647f60f3c019 (diff)
downloadnextcloud-server-6c7ba01dfedaf90855c8a5f3915cbc7a07c1a70b.tar.gz
nextcloud-server-6c7ba01dfedaf90855c8a5f3915cbc7a07c1a70b.zip
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/lib')
-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,