{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/24040","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/24040/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/24040/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/24040/events","html_url":"https://github.com/owncloud/core/issues/24040","id":148839577,"number":24040,"title":"ldap_control_paged_result_response(): No server controls in result","user":{"login":"migle","id":482335,"avatar_url":"https://avatars.githubusercontent.com/u/482335?v=3","gravatar_id":"","url":"https://api.github.com/users/migle","html_url":"https://github.com/migle","followers_url":"https://api.github.com/users/migle/followers","following_url":"https://api.github.com/users/migle/following{/other_user}","gists_url":"https://api.github.com/users/migle/gists{/gist_id}","starred_url":"https://api.github.com/users/migle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migle/subscriptions","organizations_url":"https://api.github.com/users/migle/orgs","repos_url":"https://api.github.com/users/migle/repos","events_url":"https://api.github.com/users/migle/events{/privacy}","received_events_url":"https://api.github.com/users/migle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/app:user_ldap","name":"app:user_ldap","color":"02d7e1"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-16T10:18:11Z","updated_at":"2016-04-22T11:03:53Z","closed_at":null,"body":"\r\nI just upgraded from owncloud 9.0 to owncloud 9.0.1.\r\nNow, I get the following errors by mail from the cron job:\r\n\r\n[owncloud][PHP][3] ldap_control_paged_result_response(): No server controls in result at /usr/local/www/owncloud/apps/user_ldap/lib/ldap.php#70\r\n[owncloud][PHP][3] ldap_control_paged_result_response(): No server controls in result at /usr/local/www/owncloud/apps/user_ldap/lib/ldap.php#70\r\n[owncloud][PHP][3] ldap_control_paged_result_response(): No server controls in result at /usr/local/www/owncloud/apps/user_ldap/lib/ldap.php#70\r\n[owncloud][PHP][3] ldap_control_paged_result_response(): No server controls in result at /usr/local/www/owncloud/apps/user_ldap/lib/ldap.php#70\r\n\r\nDespite this, most things that I can see appear to work just fine.\r\n\r\nI think I also had an error with the cron job when I upgraded to 9.0, which took me to patch one file, but I can't find the fix in the Internet now, and I can't tell if the error was the same.\r\n\r\n**Operating system**: FreeBSD 10.3-RELEASE\r\n**Web server:** Apache 2.4 (from ports)\r\n**Database:** MariaDB 5.5 (pre-compiled pkg)\r\n**PHP version:** 5.6.20 (pre-compiled pkg)\r\n**ownCloud version:** 9.0.1 (from ports, 9.0.1_1)\r\n**Updated from an older ownCloud or fresh install:** upgraded from 9.0\r\n\r\n**Where did you install ownCloud from:** from FreeBSD ports, port revision 9.0.1_1\r\n**Signing status (ownCloud 9.0 and above):**\r\n\r\n```\r\nNo errors have been found.\r\n```\r\n\r\n#### LDAP configuration\r\n\r\n```\r\n+-------------------------------+---------------------------------------------------------------------------------------------------------+\r\n| Configuration                 |                                                                                                         |\r\n+-------------------------------+---------------------------------------------------------------------------------------------------------+\r\n| hasMemberOfFilterSupport      |                                                                                                         |\r\n| hasPagedResultSupport         |                                                                                                         |\r\n| homeFolderNamingRule          |                                                                                                         |\r\n| lastJpegPhotoLookup           | 0                                                                                                       |\r\n| ldapAgentName                 |                                                                                                         |\r\n| ldapAgentPassword             | ***                                                                                                     |\r\n| ldapAttributesForGroupSearch  |                                                                                                         |\r\n| ldapAttributesForUserSearch   |                                                                                                         |\r\n| ldapBackupHost                |                                                                                                         |\r\n| ldapBackupPort                |                                                                                                         |\r\n| ldapBase                      | dc=ramos,dc=link                                                                                        |\r\n| ldapBaseGroups                | dc=ramos,dc=link                                                                                        |\r\n| ldapBaseUsers                 | dc=ramos,dc=link                                                                                        |\r\n| ldapCacheTTL                  | 600                                                                                                     |\r\n| ldapConfigurationActive       | 1                                                                                                       |\r\n| ldapDynamicGroupMemberURL     |                                                                                                         |\r\n| ldapEmailAttribute            | mail                                                                                                    |\r\n| ldapExperiencedAdmin          | 0                                                                                                       |\r\n| ldapExpertUUIDGroupAttr       |                                                                                                         |\r\n| ldapExpertUUIDUserAttr        |                                                                                                         |\r\n| ldapExpertUsernameAttr        | uid                                                                                                     |\r\n| ldapGroupDisplayName          | cn                                                                                                      |\r\n| ldapGroupFilter               | (&(objectclass=posixGroup)(gidNumber>=2001))                                                            |\r\n| ldapGroupFilterGroups         |                                                                                                         |\r\n| ldapGroupFilterMode           | 1                                                                                                       |\r\n| ldapGroupFilterObjectclass    | posixGroup                                                                                              |\r\n| ldapGroupMemberAssocAttr      | memberUid                                                                                               |\r\n| ldapHost                      | ldapi:///                                                                                               |\r\n| ldapIgnoreNamingRules         |                                                                                                         |\r\n| ldapLoginFilter               | (&(|(objectclass=inetOrgPerson))(|(uid=%uid)(|(cn=%uid)(displayName=%uid)(givenName=%uid)(mail=%uid)))) |\r\n| ldapLoginFilterAttributes     | cn;displayName;givenName;mail                                                                           |\r\n| ldapLoginFilterEmail          | 0                                                                                                       |\r\n| ldapLoginFilterMode           | 0                                                                                                       |\r\n| ldapLoginFilterUsername       | 1                                                                                                       |\r\n| ldapNestedGroups              | 1                                                                                                       |\r\n| ldapOverrideMainServer        |                                                                                                         |\r\n| ldapPagingSize                | 0                                                                                                       |\r\n| ldapPort                      | 389                                                                                                     |\r\n| ldapQuotaAttribute            |                                                                                                         |\r\n| ldapQuotaDefault              |                                                                                                         |\r\n| ldapTLS                       | 1                                                                                                       |\r\n| ldapUserDisplayName           | displayName                                                                                             |\r\n| ldapUserDisplayName2          |                                                                                                         |\r\n| ldapUserFilter                | (|(objectclass=inetOrgPerson))                                                                          |\r\n| ldapUserFilterGroups          |                                                                                                         |\r\n| ldapUserFilterMode            | 0                                                                                                       |\r\n| ldapUserFilterObjectclass     | inetOrgPerson                                                                                           |\r\n| ldapUuidGroupAttribute        | auto                                                                                                    |\r\n| ldapUuidUserAttribute         | auto                                                                                                    |\r\n| turnOffCertCheck              | 0                                                                                                       |\r\n| useMemberOfToDetectMembership | 1                                                                                                       |\r\n+-------------------------------+---------------------------------------------------------------------------------------------------------+\r\n```\r\n\r\nI use OpenLDAP 2.4 and the core, inetorgperson schemas.\r\n\r\nThis is a family server, still small but growing.\r\n\r\nAlso, I changed recently to ldapi:/// where I used to have localhost.\r\nAlso, I've used both 500 and 0 for ldapPagingSize.\r\n\r\nNone of these changes anything.\r\n\r\nThank you,"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/213381045","html_url":"https://github.com/owncloud/core/issues/24040#issuecomment-213381045","issue_url":"https://api.github.com/repos/owncloud/core/issues/24040","id":213381045,"user":{"login":"migle","id":482335,"avatar_url":"https://avatars.githubusercontent.com/u/482335?v=3","gravatar_id":"","url":"https://api.github.com/users/migle","html_url":"https://github.com/migle","followers_url":"https://api.github.com/users/migle/followers","following_url":"https://api.github.com/users/migle/following{/other_user}","gists_url":"https://api.github.com/users/migle/gists{/gist_id}","starred_url":"https://api.github.com/users/migle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/migle/subscriptions","organizations_url":"https://api.github.com/users/migle/orgs","repos_url":"https://api.github.com/users/migle/repos","events_url":"https://api.github.com/users/migle/events{/privacy}","received_events_url":"https://api.github.com/users/migle/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T11:03:53Z","updated_at":"2016-04-22T11:03:53Z","body":"No!\r\nAlmost solved.\r\n\r\nHere it goes: I use an uncommon database backend for OpenLDAP. The normal today is MDB. I use the LDIF backend which just stores everything on text files without indices.\r\n\r\nWhy I do that is outside the scope of this issue. But, I run a small directory at home, with under 20 users. I've been running OpenLDAP for well over 10 years now, and over those years it has been the main cause of downtime here. I run the LDIF backend, because although it is not fast, it certainly is robust and easy to recover.\r\n\r\nSo, guessing, I guessed that the paged searches are not possible with the LDIF backend. And I guessed right. Just dumping my database to MDB and using the MDB backend made owncloud quiet.\r\n\r\nSo, don't hit me. There are two questions:\r\n\r\n- This is not a recent change in my OpenLDAP configuration, I've been happily using LDIF for longer than I use owncloud. So, really, owncloud 9.0.0 probably was not using paged searches or was silent about this. You could have told me this: \"perhaps that's because before 9.0.1 paged searches were not actually happening with OpenLDAP\".\r\n- So, we've found out about a scenario in which a server which usually supports paged searches, really does not. So the hasPagedResultSupport() test is not so good. While my LDIF backend is probably rare in production, maybe there are more backends which don't support them.\r\n- When this fails, the number of errors for a single run of the cron job is large, sometimes two error messages, sometimes around ten... So, it would be nice to still be able to run the server without paged results and not getting the emails from cron every 15 minutes.\r\n\r\nRight now, the fix for me is setting hasPagedResultsSupport to false without testing.\r\n\r\nIn any case, maybe you want to change this from \"bug\" to a \"feature request\" if you consider that the long term solution would be to have an option to deactivate paged searches (actually, you say that setting the page size to zero disabled paged searches, but it doesn't, so this could still be considered a bug).\r\nOr, you could consider that the problem is that the test in hasPagedResultsSupport is not good and it is a bug.\r\n\r\nIn any case, I won't be offended.\r\nThank you,\r\n\r\nMaybe you need help translating the LDAP-related options to portuguese? The current translation appears to be google-translated and is totally incomprehensible."}}