mirror of
https://github.com/nextcloud/server.git
synced 2026-03-24 19:33:49 -04:00
Put back length check to have a clear error
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
dd8d90923e
commit
8367bda445
1 changed files with 11 additions and 0 deletions
|
|
@ -356,6 +356,17 @@ abstract class AbstractMapping {
|
|||
* @return bool
|
||||
*/
|
||||
public function map($fdn, $name, $uuid) {
|
||||
if (mb_strlen($fdn) > 4096) {
|
||||
\OC::$server->getLogger()->error(
|
||||
'Cannot map, because the DN exceeds 4096 characters: {dn}',
|
||||
[
|
||||
'app' => 'user_ldap',
|
||||
'dn' => $fdn,
|
||||
]
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
$row = [
|
||||
'ldap_dn_hash' => $this->getDNHash($fdn),
|
||||
'ldap_dn' => $fdn,
|
||||
|
|
|
|||
Loading…
Reference in a new issue