owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.38k stars 2.05k forks source link

[6.0.5] WINDOWS IIS Shares slow with large or complex LDAP #11002

Closed ser72 closed 10 years ago

ser72 commented 10 years ago

Steps Load oC6.0.5 on Windows Server Configure Large or complex LDAP Two scenarios were seen 1) Large flat LDAP with 100000 users 2) Smaller LDAP with embedded groups

Create a file Share the file -- in the user dialog box, enter a letter or more -- Notice there is a delay before any users appear

If you select the SHARE AS LINK option before any users come up above, the link never appears. Selecting outside the share dialog and then attempt to share the file again and the share dialog doesn't appear.

Eventually the share dialog appears -- when the LDAP query has completed.

Once LDAP query has completed, all works for a period of the Cache timeout. While all users are cached, there are no issues. After the cache timeout, when oC must query the LDAP again, the latency appears again.

Seems related to slow LDAP queries.

Sample logs and configuration available on S3 under support/github-issues/core/11002

@blizzz

blizzz commented 10 years ago

@gig13 No, error. The user is running PHP 5.3 which a) is dead and b) does not support Paged Results. He needs to upgrade to at least PHP 5.4, because prior versions do not support Paged Results.

gig13 commented 10 years ago

@carlaschroder Just making sure that php5.3 is documented as not supported, and php5.4 and up are required.

LukasReschke commented 10 years ago

@gig13 It already is: https://github.com/owncloud/documentation/pull/588

gig13 commented 10 years ago

@blizzz The server php has been upgraded. After running the php file, the result appears to be at the end, shows "LDAP Server supports Paged Results".

I am just following up with this case from Steve, so what are the next steps?

blizzz commented 10 years ago

@gig13 that already should fix it. Let the end user confirm it works with an acceptable performance now.

blizzz commented 10 years ago

@gig13 can this be closed?

gig13 commented 10 years ago

@blizzz I will close it, the php upgrade made a big difference with the paged results.