mirror of
https://github.com/nextcloud/server.git
synced 2026-02-15 08:48:14 -05: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
189852b549
commit
a0db2a248c
1 changed files with 11 additions and 0 deletions
|
|
@ -355,6 +355,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