core icon indicating copy to clipboard operation
core copied to clipboard

No more than 1000 users from Active Directory

Open PisikeSipelgas opened this issue 14 years ago • 3 comments

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/

PisikeSipelgas avatar Nov 28 '12 08:11 PisikeSipelgas

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.

blizzz avatar Nov 28 '12 12:11 blizzz

In this case we can close this issue - I assume.

DeepDiver1975 avatar Nov 29 '12 14:11 DeepDiver1975

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

brainstorm avatar Jul 28 '14 14:07 brainstorm