No more than 1000 users from Active Directory
OC 4.5.3
There are around 5000 users in AD. When trying to search user to share files, OC logs an error:
Nov 28 09:46:06 server httpd: PHP Warning: ldap_search(): Partial search results returned: Sizelimit exceeded in /usr/local/www/owncloud/apps/user_ldap/lib/access.php on line 526
mysql> select count(1) from oc_ldap_user_mapping; +----------+ | count(1) | +----------+ | 1000 | +----------+ 1 row in set (0.00 sec)
Users outside those initial 1000 are not found.
Little search from google provided this information:
http://stackoverflow.com/questions/8636375/php-ldap-search-size-limit-exceeded
http://ff1959.wordpress.com/2011/11/30/ldap-paged-results/
ownCloud 5.0 will support Paged Search (will require PHP 5.4, the necessary methods are not part of PHP 5.3). For now, you need to set up the page size on your AD to >= the number of your users.
In this case we can close this issue - I assume.
As of OwnCloud 7, this issue still remains unsolved (or maybe there's some kind of regression?), please see https://github.com/owncloud/core/issues/8258