Skip to content

Commit 265b999

Browse files
committed
use serverControls directly with LDAP calls, fixes 19127
- adapters for PHP API version to Support PHP < 7.3 - switch to pass only one base per search - cookie logic is moved from Access to API adapters Signed-off-by: Arthur Schiwon <[email protected]>
1 parent bc6a5ef commit 265b999

File tree

16 files changed

+751
-229
lines changed

16 files changed

+751
-229
lines changed

.drone.yml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,15 +1501,15 @@ trigger:
15011501

15021502
---
15031503
kind: pipeline
1504-
name: integration-ldap-openldap-uid-features
1504+
name: integration-ldap-openldap-uid-features-php54-api
15051505

15061506
steps:
15071507
- name: submodules
15081508
image: docker:git
15091509
commands:
15101510
- git submodule update --init
15111511
- name: integration-ldap-openldap-uid-features
1512-
image: nextcloudci/integration-php7.3:integration-php7.3-2
1512+
image: nextcloudci/integration-php7.2:integration-php7.2-1
15131513
commands:
15141514
- bash tests/drone-run-integration-tests.sh || exit 0
15151515
- ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
@@ -1539,6 +1539,49 @@ trigger:
15391539
event:
15401540
- pull_request
15411541
- push
1542+
type: docker
1543+
1544+
---
1545+
kind: pipeline
1546+
name: integration-ldap-openldap-uid-features
1547+
1548+
steps:
1549+
- name: submodules
1550+
image: docker:git
1551+
commands:
1552+
- git submodule update --init
1553+
- name: integration-ldap-openldap-uid-features
1554+
image: nextcloudci/integration-php7.3:integration-php7.3-2
1555+
commands:
1556+
- bash tests/drone-run-integration-tests.sh || exit 0
1557+
- ./occ maintenance:install --admin-pass=admin --data-dir=/dev/shm/nc_int
1558+
- ./occ config:system:set redis host --value=cache
1559+
- ./occ config:system:set redis port --value=6379 --type=integer
1560+
- ./occ config:system:set redis timeout --value=0 --type=integer
1561+
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.local
1562+
- ./occ config:system:set --type string --value "\\OC\\Memcache\\Redis" memcache.distributed
1563+
- cd build/integration
1564+
- ./run.sh ldap_features/openldap-uid-username.feature
1565+
1566+
services:
1567+
- name: cache
1568+
image: redis
1569+
- name: openldap
1570+
image: nextcloudci/openldap:openldap-7
1571+
environment:
1572+
SLAPD_DOMAIN: nextcloud.ci
1573+
SLAPD_ORGANIZATION: Nextcloud
1574+
SLAPD_PASSWORD: admin
1575+
SLAPD_ADDITIONAL_MODULES: memberof
1576+
1577+
trigger:
1578+
branch:
1579+
- master
1580+
- stable*
1581+
event:
1582+
- pull_request
1583+
- push
1584+
type: docker
15421585

15431586
---
15441587
kind: pipeline

apps/user_ldap/composer/composer/autoload_classmap.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
'OCA\\User_LDAP\\Migration\\UUIDFixInsert' => $baseDir . '/../lib/Migration/UUIDFixInsert.php',
5454
'OCA\\User_LDAP\\Migration\\UUIDFixUser' => $baseDir . '/../lib/Migration/UUIDFixUser.php',
5555
'OCA\\User_LDAP\\Notification\\Notifier' => $baseDir . '/../lib/Notification/Notifier.php',
56+
'OCA\\User_LDAP\\PagedResults\\IAdapter' => $baseDir . '/../lib/PagedResults/IAdapter.php',
57+
'OCA\\User_LDAP\\PagedResults\\Php54' => $baseDir . '/../lib/PagedResults/Php54.php',
58+
'OCA\\User_LDAP\\PagedResults\\Php73' => $baseDir . '/../lib/PagedResults/Php73.php',
59+
'OCA\\User_LDAP\\PagedResults\\TLinkId' => $baseDir . '/../lib/PagedResults/TLinkId.php',
5660
'OCA\\User_LDAP\\Proxy' => $baseDir . '/../lib/Proxy.php',
5761
'OCA\\User_LDAP\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php',
5862
'OCA\\User_LDAP\\Settings\\Section' => $baseDir . '/../lib/Settings/Section.php',

apps/user_ldap/composer/composer/autoload_static.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ class ComposerStaticInitUser_LDAP
6868
'OCA\\User_LDAP\\Migration\\UUIDFixInsert' => __DIR__ . '/..' . '/../lib/Migration/UUIDFixInsert.php',
6969
'OCA\\User_LDAP\\Migration\\UUIDFixUser' => __DIR__ . '/..' . '/../lib/Migration/UUIDFixUser.php',
7070
'OCA\\User_LDAP\\Notification\\Notifier' => __DIR__ . '/..' . '/../lib/Notification/Notifier.php',
71+
'OCA\\User_LDAP\\PagedResults\\IAdapter' => __DIR__ . '/..' . '/../lib/PagedResults/IAdapter.php',
72+
'OCA\\User_LDAP\\PagedResults\\Php54' => __DIR__ . '/..' . '/../lib/PagedResults/Php54.php',
73+
'OCA\\User_LDAP\\PagedResults\\Php73' => __DIR__ . '/..' . '/../lib/PagedResults/Php73.php',
74+
'OCA\\User_LDAP\\PagedResults\\TLinkId' => __DIR__ . '/..' . '/../lib/PagedResults/TLinkId.php',
7175
'OCA\\User_LDAP\\Proxy' => __DIR__ . '/..' . '/../lib/Proxy.php',
7276
'OCA\\User_LDAP\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php',
7377
'OCA\\User_LDAP\\Settings\\Section' => __DIR__ . '/..' . '/../lib/Settings/Section.php',

0 commit comments

Comments
 (0)