summaryrefslogtreecommitdiffstats
path: root/build/integration/ldap_features
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-06-03 15:24:26 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-06-14 06:23:58 +0200
commit437b33ff63c5c9799bc9147499e5d8e71745c7ec (patch)
tree69a7ca61c94b3c7bc322cb153de986f6c0e3dc08 /build/integration/ldap_features
parent85767660baa8b9e686303b091da8c96b13345f86 (diff)
downloadnextcloud-server-437b33ff63c5c9799bc9147499e5d8e71745c7ec.tar.gz
nextcloud-server-437b33ff63c5c9799bc9147499e5d8e71745c7ec.zip
add LDAP integr. test for receiving share candidates with group limitation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'build/integration/ldap_features')
-rw-r--r--build/integration/ldap_features/openldap-uid-username.feature21
1 files changed, 21 insertions, 0 deletions
diff --git a/build/integration/ldap_features/openldap-uid-username.feature b/build/integration/ldap_features/openldap-uid-username.feature
index e120d0316de..1790106ad56 100644
--- a/build/integration/ldap_features/openldap-uid-username.feature
+++ b/build/integration/ldap_features/openldap-uid-username.feature
@@ -118,3 +118,24 @@ Feature: LDAP
And the command output contains the text "Clean up the user's remnants by"
And invoking occ with "user:delete alice"
Then the command output contains the text "The specified user was deleted"
+
+ Scenario: Search only with group members - allowed
+ Given modify LDAP configuration
+ | ldapGroupFilter | cn=Orcharding |
+ | ldapGroupMemberAssocAttr | member |
+ | ldapBaseGroups | ou=OtherGroups,dc=nextcloud,dc=ci |
+ | ldapAttributesForUserSearch | employeeNumber |
+ | useMemberOfToDetectMembership | 1 |
+ And parameter "shareapi_only_share_with_group_members" of app "core" is set to "yes"
+ And As an "alice"
+ When getting sharees for
+ # "5" is part of the employee number of some LDAP records
+ | search | 5 |
+ | itemType | file |
+ Then the OCS status code should be "200"
+ And the HTTP status code should be "200"
+ And "exact users" sharees returned is empty
+ And "users" sharees returned are
+ | Elisa | 0 | elisa |
+ And "exact groups" sharees returned is empty
+