Closed artlog closed 4 weeks ago
You can disable pagination on LDAP server side, no?
Main problem here at nextcloud side is that there is no way to deactivate ldap pagination.
We didn't find any way to instruct nextcloud to deactivate pagination to retrieve groups.
Our ldap implementation has an ldapPagingSize
parameter (defaults to 500) though I must admit I've never used it.
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.
⚠️ This issue respects the following points: ⚠️
Bug description
We are using openldap dynamic groups with a memberURL that automatically constructs members attributes, this is a openldap 2.5 version with slapo-dynlist.
When browsing users, those groups are found and users belong to groups are listed, but group column is not filled with any of those group. When login with users belonging to groups those dynamic groups are not added to user's group, while other static groups are.
After investigation we spotted ldap pagedresults should be deactivated.
we tried to deactivate ldap pagination using 0 in Paging Chunksize but this is not disabling pagination at all. We didn't find any way to instruct nextcloud to deactivate pagination to retrieve groups.
Steps to reproduce
A)
what happens : when displaying confiugraiton for user, group does not appear.
B) with A setup, share a folder to a dynamic group
what happens : no user within this group can see the folder.
Expected behavior
A) user should belong to group.
B) user within dynamic group can see the shared folder.
Installation method
Community Manual installation with Archive
Nextcloud Server version
25
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
We traced openldap exchanges between a ldap request done manually and one done from nextcloud, the only difference was usage of pagination. We confirmed that pagination should not be used and that member attributes were correctly retrieved without pagination. This problem is related to paged result, openldap dynamic groups should not be retrieved with paged result since there is a bug preventing to obtain full result. This bug is officialy documented in openldap man page for 2.5 : https://man7.org/linux/man-pages/man5/slapo-dynlist.5.html See BUG quoting it 'Filtering on dynamic groups may return incomplete results if the search operation uses the pagedResults control.' Result are more than incomplete, there is just no member at all returned. This bug won't be fixed soon in openldap, so we tried to deactivate ldap pagination using 0 in Paging Chunksize but this is not disabling pagination at all.
Main problem here at nextcloud side is that there is no way to deactivate ldap pagination.