summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/tests/Mapping
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-01-25 17:10:51 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-01-25 17:10:51 +0100
commit03ae7b654f62a37cc3fd637ab4f971128163f22a (patch)
tree0bfbbf63084192d3bce88690d97562c2dd404610 /apps/user_ldap/tests/Mapping
parentf469b3e9587e9eae2cce924241f90baa1da30b31 (diff)
downloadnextcloud-server-03ae7b654f62a37cc3fd637ab4f971128163f22a.tar.gz
nextcloud-server-03ae7b654f62a37cc3fd637ab4f971128163f22a.zip
Gracefully deny users or groups with too long DNs
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/tests/Mapping')
-rw-r--r--apps/user_ldap/tests/Mapping/AbstractMappingTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
index 91013085c2c..5c3474d9ad2 100644
--- a/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
+++ b/apps/user_ldap/tests/Mapping/AbstractMappingTest.php
@@ -106,7 +106,8 @@ abstract class AbstractMappingTest extends \Test\TestCase {
list($mapper, $data) = $this->initTest();
// test that mapping will not happen when it shall not
- $paramKeys = array('', 'dn', 'name', 'uuid');
+ $tooLongDN = 'uid=joann,ou=Secret Small Specialized Department,ou=Some Tremendously Important Department,ou=Another Very Important Department,ou=Pretty Meaningful Derpartment,ou=Quite Broad And General Department,ou=The Topmost Department,dc=hugelysuccessfulcompany,dc=com';
+ $paramKeys = array('', 'dn', 'name', 'uuid', $tooLongDN);
foreach($paramKeys as $key) {
$failEntry = $data[0];
if(!empty($key)) {