{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/server/issues/2213","repository_url":"https://api.github.com/repos/nextcloud/server","labels_url":"https://api.github.com/repos/nextcloud/server/issues/2213/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/server/issues/2213/comments","events_url":"https://api.github.com/repos/nextcloud/server/issues/2213/events","html_url":"https://github.com/nextcloud/server/issues/2213","id":190701539,"number":2213,"title":"Can't list LDAP users","user":{"login":"KB7777","id":23165598,"avatar_url":"https://avatars.githubusercontent.com/u/23165598?v=3","gravatar_id":"","url":"https://api.github.com/users/KB7777","html_url":"https://github.com/KB7777","followers_url":"https://api.github.com/users/KB7777/followers","following_url":"https://api.github.com/users/KB7777/following{/other_user}","gists_url":"https://api.github.com/users/KB7777/gists{/gist_id}","starred_url":"https://api.github.com/users/KB7777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KB7777/subscriptions","organizations_url":"https://api.github.com/users/KB7777/orgs","repos_url":"https://api.github.com/users/KB7777/repos","events_url":"https://api.github.com/users/KB7777/events{/privacy}","received_events_url":"https://api.github.com/users/KB7777/received_events","type":"User","site_admin":false},"labels":[{"id":386379231,"url":"https://api.github.com/repos/nextcloud/server/labels/bug","name":"bug","color":"ee0701","default":true},{"id":389032633,"url":"https://api.github.com/repos/nextcloud/server/labels/feature:%20ldap","name":"feature: ldap","color":"c2e0c6","default":false},{"id":386379234,"url":"https://api.github.com/repos/nextcloud/server/labels/help%20wanted","name":"help wanted","color":"006b75","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-21T12:23:21Z","updated_at":"2016-11-30T12:54:44Z","closed_at":null,"body":"### Steps to reproduce\r\n1. Click at the Users page\r\n2.\r\n3.\r\n\r\n### Expected behaviour\r\nShowing users at Users page\r\n\r\n### Actual behaviour\r\nThere is no users at Users page:\r\n\r\n![2016-11-17 13_25_35](https://cloud.githubusercontent.com/assets/23165598/20482036/869cee34-afea-11e6-8d23-0606ea05ee7f.png)\r\n\r\nAdditional info:\r\nWhen I click at any group usrers are showing.\r\nWhen I disable LDAP plugin users are showing.\r\nBut, sometimes it load only few records from LDAP.\r\n\r\nThe users from AD can log in with no problems. At least the few ones which I tested recently.\r\nI have over 1500 users at my OU.\r\n\r\n### Server configuration\r\n**Operating system**: \r\nfully patched CentOS Linux release 7.2.1511 (Core) \r\n\r\n**Web server:** \r\nName        : httpd\r\nArch        : x86_64\r\nVersion     : 2.4.6\r\nRelease     : 40.el7.centos.4\r\n\r\n**Database:**\r\nName        : MariaDB-server\r\nArch        : x86_64\r\nVersion     : 10.1.19\r\nRelease     : 1.el7.centos\r\n\r\n**PHP version:**\r\nName        : php55\r\nArch        : x86_64\r\nVersion     : 2.0\r\nRelease     : 1.el7\r\n\r\n\r\n**Nextcloud version:** (see Nextcloud admin page)\r\n 10.0.1 (stable)\r\n\r\n**Updated from an older Nextcloud/ownCloud or fresh install:**\r\nFresh install\r\n\r\n**Where did you install Nextcloud from:**\r\ndownloaded tar.gz from Nextcloud portal\r\n\r\n**List of activated apps:**\r\nEnabled:\r\n  - admin_audit: 1.0.0\r\n  - dav: 1.0.1\r\n  - federatedfilesharing: 1.0.1\r\n  - files: 1.5.2\r\n  - files_pdfviewer: 0.8.1\r\n  - files_versions: 1.3.0\r\n  - firstrunwizard: 1.1\r\n  - notifications: 0.3.0\r\n  - password_policy: 1.0.0\r\n  - provisioning_api: 1.0.0\r\n  - serverinfo: 1.1.1\r\n  - theming: 1.0.1\r\n  - updatenotification: 1.0.1\r\n  - user_ldap: 1.0.1\r\n  - workflowengine: 1.0.1\r\n\r\nDisabled:\r\n  - activity\r\n  - comments\r\n  - encryption\r\n  - external\r\n  - federation\r\n  - files_accesscontrol\r\n  - files_automatedtagging\r\n  - files_external\r\n  - files_retention\r\n  - files_sharing\r\n  - files_texteditor\r\n  - files_trashbin\r\n  - files_videoplayer\r\n  - gallery\r\n  - survey_client\r\n  - systemtags\r\n  - templateeditor\r\n  - user_external\r\n  - user_saml\r\n\r\n**The content of config/config.php:**\r\n{\r\n\"system\": {\r\n\"instanceid\": \"ocmvtc6rlvl3\",\r\n\"passwordsalt\": \"REMOVED SENSITIVE VALUE\",\r\n\"secret\": \"REMOVED SENSITIVE VALUE\",\r\n\"trusted_domains\": [\r\n\"REMOVED SENSITIVE VALUE\",\r\n\"REMOVED SENSITIVE VALUE\"\r\n],\r\n\"datadirectory\": \"\\/var\\/www\\/html\\/nextcloud\\/data\",\r\n\"overwrite.cli.url\": \"http:\\/\\/***REMOVED SENSITIVE VALUE***\\/nextcloud\",\r\n\"dbtype\": \"mysql\",\r\n\"version\": \"9.1.1.5\",\r\n\"dbname\": \"nextcloud\",\r\n\"dbhost\": \"localhost\",\r\n\"dbport\": \"\",\r\n\"dbtableprefix\": \"oc_\",\r\n\"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n\"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n\"logtimezone\": \"UTC\",\r\n\"installed\": true,\r\n\"appstore.experimental.enabled\": true,\r\n\"loglevel\": 0,\r\n\"mail_smtpmode\": \"smtp\",\r\n\"mail_from_address\": \"nextcloud\",\r\n\"mail_domain\": \"***REMOVED SENSITIVE VALUE***\",\r\n\"mail_smtphost\": \"***REMOVED SENSITIVE VALUE***\",\r\n\"mail_smtpport\": \"25\",\r\n\"htaccess.RewriteBase\": \"\\/nextcloud\",\r\n\"knowledgebaseenabled\": false,\r\n\"enable_avatars\": false,\r\n\"allow_user_to_change_display_name\": false,\r\n\"enable_previews\": false,\r\n\"ldapIgnoreNamingRules\": false,\r\n\"ldapProviderFactory\": \"\\OCA\\User_LDAP\\LDAPProviderFactory\"\r\n\"memcache.local\": \"\\\\OC\\\\Memcache\\\\APCu\"\r\n}\r\n}\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\nNo.\r\n\r\n**Are you using encryption:** yes/no\r\nNo.\r\n\r\n**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...\r\nActive Directory.\r\n\r\n#### LDAP configuration (delete this part if not used)\r\nLDAP:\r\n+-------------------------------+----------------------------------------------------------------------+\r\n| Configuration | |\r\n+-------------------------------+----------------------------------------------------------------------+\r\n| hasMemberOfFilterSupport | 1 |\r\n| hasPagedResultSupport | |\r\n| homeFolderNamingRule | |\r\n| lastJpegPhotoLookup | 0 |\r\n| ldapAgentName | cn=app_nextcloud,ou=services,ou=Accounts,dc=***REMOVED SENSITIVE VALUE***,dc=com,dc=pl |\r\n| ldapAgentPassword | *** |\r\n| ldapAttributesForGroupSearch | |\r\n| ldapAttributesForUserSearch | |\r\n| ldapBackupHost | |\r\n| ldapBackupPort | |\r\n| ldapBase | ou=***REMOVED SENSITIVE VALUE***,ou=Accounts,dc=***REMOVED SENSITIVE VALUE***,dc=com,dc=pl |\r\n| ldapBaseGroups | ou=***REMOVED SENSITIVE VALUE***,ou=Accounts,dc=***REMOVED SENSITIVE VALUE***,dc=com,dc=pl |\r\n| ldapBaseUsers | ou=***REMOVED SENSITIVE VALUE***,ou=Accounts,dc=***REMOVED SENSITIVE VALUE***,dc=com,dc=pl |\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 | |\r\n| ldapGroupDisplayName | cn |\r\n| ldapGroupFilter | |\r\n| ldapGroupFilterGroups | |\r\n| ldapGroupFilterMode | 0 |\r\n| ldapGroupFilterObjectclass | |\r\n| ldapGroupMemberAssocAttr | uniqueMember |\r\n| ldapHost | REMOVED SENSITIVE VALUE |\r\n| ldapIgnoreNamingRules | |\r\n| ldapLoginFilter | (&(&(|(objectclass=person)))(samaccountname=%uid)) |\r\n| ldapLoginFilterAttributes | |\r\n| ldapLoginFilterEmail | 0 |\r\n| ldapLoginFilterMode | 0 |\r\n| ldapLoginFilterUsername | 1 |\r\n| ldapNestedGroups | 0 |\r\n| ldapOverrideMainServer | |\r\n| ldapPagingSize | 0 |\r\n| ldapPort | 389 |\r\n| ldapQuotaAttribute | |\r\n| ldapQuotaDefault | 5 GB |\r\n| ldapTLS | 0 |\r\n| ldapUserDisplayName | displayname |\r\n| ldapUserDisplayName2 | |\r\n| ldapUserFilter | (&(|(objectclass=person))) |\r\n| ldapUserFilterGroups | |\r\n| ldapUserFilterMode | 1 |\r\n| ldapUserFilterObjectclass | person |\r\n| ldapUuidGroupAttribute | auto |\r\n| ldapUuidUserAttribute | auto |\r\n| turnOffCertCheck | 1 |\r\n| useMemberOfToDetectMembership | 0 |\r\n+-------------------------------+----------------------------------------------------------------------+\r\n\r\n### Client configuration\r\n**Browser:**\r\nLast Chrome, last Firefox, IE11\r\n\r\n**Operating system:**\r\nWindows 7 x64.\r\n\r\n### Logs\r\n#### Web server error log\r\n[Mon Nov 21 13:20:13.149953 2016] [:error] [pid 15131] [client 10.151.40.57:17459] PHP Fatal error:  Call to a member function composeAndStoreDisplayName() on a non-object in /var/www/html/nextcloud/apps/user_ldap/lib/Access.php on line 552\r\n\r\n#### Nextcloud log (data/nextcloud.log)\r\n{\"reqId\":\"WDLme7NW3PMD4XfybYQpegAAAAQ\",\"remoteAddr\":\"10.151.40.57\",\"app\":\"PHP\",\"message\":\"Call to a member function composeAndStoreDisplayName() on a non-object at \\/var\\/www\\/html\\/nextcloud\\/apps\\/user_ldap\\/lib\\/Access.php#552\",\"level\":3,\"time\":\"2016-11-21T12:20:13+00:00\",\"method\":\"GET\",\"url\":\"\\/nextcloud\\/settings\\/users\\/users?offset=0&limit=50&gid=&pattern=\",\"user\":\"admin\"}\r\n"},"comment":{"url":"https://api.github.com/repos/nextcloud/server/issues/comments/263866503","html_url":"https://github.com/nextcloud/server/issues/2213#issuecomment-263866503","issue_url":"https://api.github.com/repos/nextcloud/server/issues/2213","id":263866503,"user":{"login":"KB7777","id":23165598,"avatar_url":"https://avatars.githubusercontent.com/u/23165598?v=3","gravatar_id":"","url":"https://api.github.com/users/KB7777","html_url":"https://github.com/KB7777","followers_url":"https://api.github.com/users/KB7777/followers","following_url":"https://api.github.com/users/KB7777/following{/other_user}","gists_url":"https://api.github.com/users/KB7777/gists{/gist_id}","starred_url":"https://api.github.com/users/KB7777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KB7777/subscriptions","organizations_url":"https://api.github.com/users/KB7777/orgs","repos_url":"https://api.github.com/users/KB7777/repos","events_url":"https://api.github.com/users/KB7777/events{/privacy}","received_events_url":"https://api.github.com/users/KB7777/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T12:54:44Z","updated_at":"2016-11-30T12:54:44Z","body":"@blizzz I switched to debug mode and with big OU (2k users) I has 4 errors like:\r\n`Debug\tuser_ldap\tThe ldap user manager returned null for 0B46xxxx-xxxx-43B2-xxxx-4B659078xxx 2016-11-30T13:33:31+01:00\tadmin`\r\n\r\nI spotted what is that object (normal user) and which OU contains it. \r\nLater I set that OU only at Nextcloud settings and I had more accounts with errors like \"returned null for\" :(\r\n\r\nEvery account is fine, users are working normally. Very strange."}}
{"actor":{"display_login":"KB7777"}}