-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Hey Together,
we had a problem with sharing folders to LDAP-Groups. In this case I want to reference to the issue which was reported in the past -> #20133
We have exact the same. In this post you can see my answers - because of no reaction I open a new bug report.
If needed I can create the bug-report template (don't know the exact name of it).
The problem is still there, also with update to 18.03 -> for this reason we found a workaround which works good.
I will copy the important things from the bug report (from the Link)
From dea-75:
Now, using the solution in #19970 NEW LDAP groups in Nextcloud 18.0.3 are visible.
But if I try to share a directory to a NEW LDAP GROUP, the share is activated, but users in the LDAP group don’t see the share.
If I try to share directly to LDAP user (no the LDAP GROUP), works fine.
Is the problem related?
Steps to reproduce
Nextcloud 18.0.3, only LDAP users and groups. Apply patch in #19970. Now LDAP groups are visible.
Expected behaviour
When I share a folder to a new added LDAP group, share is activated, but users in the LDAP group doesn't see the share. If I share to singles LDAP users works fine (the problem is present ONLY for LDAP groups).
If I create a local groups (to test) and insert several LDAP users in the local group, works fine.
NO APP "Group folders" installed.
OS: Debian 10
Apache 2.4 (Debian)
PHP 7.3 - FPM (Debian 10)
Nextcloud 18.0.3 with #19970 applied
LDAP users app installed, last version.
No extenal storage, No encryption.
=> This issue is fixed for @dea-75 but on our side we have still this issue.
In the following is the reaction of my side (also the workaround)
From me (MatzeFix)
Hey together,
we have the same system as dea-75 -> also Version 18.03 and the same system-versions.
We also have the same problem.
@dea-75 did you make a workaround or some steps to fix that?
I tested this problem in Version 18.00; 18.02 and 18.03 and got always the same result.
Sharing folders with LDAP groups don't work (like dea-75 discribed).
We tested the LDAP connection and the results of the requests. All works perfekt, but we can't share folders with LDAP groups.
I don't know what to do, to fix it.... I also tested it in the past with Group-Folders (this works perfect).
=====
Hey together,
I found a workaround to the problem - which is not pretty nice but it works.
Actual status:
At the moment, it's possible to to share folders to LDAP-Groups. But the LDAP-Group Members don't see the shared folder.
Workaround:
In the database there is a table called oc_share which organize all shared folders with names etc.
This table has the attribute "accepted". By default this entry has the value 0. If you change all entries with accepted = 0 to accepted = 1 -> the shared folders and files will be avaliable for the LDAP-Group members on their own root-directory.
I tested this workaround for 18.02 and 18.03 and it works.
Maybe the feature -> accept shared folders an document has a bug.
We also made some config changes with the option following options to true and false (also with relogin after change an so on), but it doesn't change the problem.
• Set to true to enable that internal shares need to be accepted by the users $
• Users can change this for their account in their personal sharing settings
/
'sharing.enable_share_accept' => false,
/*
• Set to true to enforce that internal shares need to be accepted
*/
'sharing.force_share_accept' => false,