{"action":"closed","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/22541","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/22541/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/22541/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/22541/events","html_url":"https://github.com/owncloud/core/issues/22541","id":135193288,"number":22541,"title":"user_ldap app: blank page if no \"displayname\" attribute is given","user":{"login":"xuhdev","id":325476,"avatar_url":"https://avatars.githubusercontent.com/u/325476?v=3","gravatar_id":"","url":"https://api.github.com/users/xuhdev","html_url":"https://github.com/xuhdev","followers_url":"https://api.github.com/users/xuhdev/followers","following_url":"https://api.github.com/users/xuhdev/following{/other_user}","gists_url":"https://api.github.com/users/xuhdev/gists{/gist_id}","starred_url":"https://api.github.com/users/xuhdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuhdev/subscriptions","organizations_url":"https://api.github.com/users/xuhdev/orgs","repos_url":"https://api.github.com/users/xuhdev/repos","events_url":"https://api.github.com/users/xuhdev/events{/privacy}","received_events_url":"https://api.github.com/users/xuhdev/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":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-21T11:26:07Z","updated_at":"2016-03-01T23:46:27Z","closed_at":"2016-03-01T23:46:26Z","body":"<!--\r\nThanks for reporting issues back to ownCloud! This is the issue tracker of ownCloud, if you have any support question please check out https://owncloud.org/support\r\n\r\nThis is the bug tracker for the Server component. Find other components at https://github.com/owncloud/core/blob/master/CONTRIBUTING.md#guidelines\r\n\r\nTo make it possible for us to help you please fill out below information carefully.\r\n--> \r\n### Steps to reproduce\r\nSet up user_ldap. Also, set up an LDAP server such that uid, mail, cn, sn and userPassword are all given for each user, but make sure no displayname is given in the LDAP database. Now try to log in with the correct/incorrect password with a user.\r\n\r\n### Expected behaviour\r\nLog in successfully with the correct password, or log in fail with the incorrect password.\r\n\r\n### Actual behaviour\r\nThe page turns blank and the log in fails.\r\n\r\n### Server configuration\r\n**Operating system**: GNU/Linux\r\n\r\n**Web server:** Apache\r\n\r\n**Database:** MariaDB 10.1\r\n\r\n**PHP version:** 5.6\r\n\r\n**ownCloud version:** 8.2.2\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\nfresh install\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n'ldapIgnoreNamingRules' => false,\r\n```\r\n\r\n**Are you using external storage? no\r\n**Are you using encryption:** no\r\n\r\n**Are you using an external user-backend, if yes which one:** LDAP\r\n\r\n#### LDAP configuration (delete this part if not used)\r\n\r\n```\r\n+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------\r\n| Configuration                 | s01                                                                                                                                       |\r\n+-------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------+\r\n| hasMemberOfFilterSupport      | 1                                                                                                                                         |\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=example,dc=com                                                                                                                             |\r\n| ldapBaseGroups                | dc=example,dc=com                                                                                                                             |\r\n| ldapBaseUsers                 | dc=example,dc=com                                                                                                                             |\r\n| ldapCacheTTL                  | 600                                                                                                                                       |\r\n| ldapConfigurationActive       | 1                                                                                                                                         |\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                      | ldap                                                                                                                                      |\r\n| ldapIgnoreNamingRules         |                                                                                                                                           |\r\n| ldapLoginFilter               | (&(&(|(objectclass=inetOrgPerson))(|(memberof=cn=owncloud,ou=groups,dc=example,dc=com)))(|(uid=%uid)(|(mailPrimaryAddress=%uid)(mail=%uid)))) |\r\n| ldapLoginFilterAttributes     |                                                                                                                                           |\r\n| ldapLoginFilterEmail          | 1                                                                                                                                         |\r\n| ldapLoginFilterMode           | 0                                                                                                                                         |\r\n| ldapLoginFilterUsername       | 1                                                                                                                                         |\r\n| ldapNestedGroups              | 0                                                                                                                                         |\r\n| ldapOverrideMainServer        |                                                                                                                                           |\r\n| ldapPagingSize                | 500                                                                                                                                       |\r\n| ldapPort                      | 389                                                                                                                                       |\r\n| ldapQuotaAttribute            |                                                                                                                                           |\r\n| ldapQuotaDefault              |                                                                                                                                           |\r\n| ldapTLS                       | 0                                                                                                                                         |\r\n| ldapUserDisplayName           | displayName                                                                                                                               |\r\n| ldapUserFilter                | (&(|(objectclass=inetOrgPerson))(|(memberof=cn=owncloud,ou=groups,dc=example,dc=com)))                                                        |\r\n| ldapUserFilterGroups          | owncloud                                                                                                                                  |\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\n\r\n### Client configuration\r\n**Browser:** Firefox\r\n\r\n**Operating system:** GNU/Linux\r\n\r\n### Logs\r\n\r\n#### ownCloud log (data/owncloud.log)\r\n```\r\n{\"reqId\":\"MOADCvda48MXBs53t9kt\",\"remoteAddr\":\"172.17.0.20\",\"app\":\"user_ldap\",\"message\":\"initializing paged search for  Filter objectClass=* base Array\\n(\\n    [0] => uid=hong,ou=people,dc=example,dc=com\\n)\\n attr Array\\n(\\n    [0] => entryuuid\\n)\\n limit 500 offset 0\",\"level\":0,\"time\":\"2016-02-21T10:58:19+00:00\",\"method\":\"POST\",\"url\":\"\\/\"}\r\n{\"reqId\":\"MOADCvda48MXBs53t9kt\",\"remoteAddr\":\"172.17.0.20\",\"app\":\"user_ldap\",\"message\":\"Ready for a paged search\",\"level\":0,\"time\":\"2016-02-21T10:58:19+00:00\",\"method\":\"POST\",\"url\":\"\\/\"}\r\n{\"reqId\":\"MOADCvda48MXBs53t9kt\",\"remoteAddr\":\"172.17.0.20\",\"app\":\"user_ldap\",\"message\":\"initializing paged search for  Filter objectClass=* base Array\\n(\\n    [0] => uid=hong,ou=people,dc=example,dc=com\\n)\\n attr Array\\n(\\n    [0] => displayName\\n)\\n limit 500 offset 0\",\"level\":0,\"time\":\"2016-02-21T10:58:19+00:00\",\"method\":\"POST\",\"url\":\"\\/\"}\r\n{\"reqId\":\"MOADCvda48MXBs53t9kt\",\"remoteAddr\":\"172.17.0.20\",\"app\":\"user_ldap\",\"message\":\"Ready for a paged search\",\"level\":0,\"time\":\"2016-02-21T10:58:19+00:00\",\"method\":\"POST\",\"url\":\"\\/\"}\r\n{\"reqId\":\"MOADCvda48MXBs53t9kt\",\"remoteAddr\":\"172.17.0.20\",\"app\":\"user_ldap\",\"message\":\"Requested attribute displayname not found for uid=hong,ou=people,dc=example,dc=com\",\"level\":0,\"time\":\"2016-02-21T10:58:19+00:00\",\"method\":\"POST\",\"url\":\"\\/\"}\r\n{\"reqId\":\"MOADCvda48MXBs53t9kt\",\"remoteAddr\":\"172.17.0.20\",\"app\":\"user_ldap\",\"message\":\"No or empty name for uid=hong,ou=people,dc=example,dc=com.\",\"level\":1,\"time\":\"2016-02-21T10:58:19+00:00\",\"method\":\"POST\",\"url\":\"\\/\"}\r\n{\"reqId\":\"MOADCvda48MXBs53t9kt\",\"remoteAddr\":\"172.17.0.20\",\"app\":\"PHP\",\"message\":\"Call to a member function processAttributes() on null at \\/var\\/www\\/html\\/apps\\/user_ldap\\/lib\\/access.php#717\",\"level\":3,\"time\":\"2016-02-21T10:58:19+00:00\",\"method\":\"POST\",\"url\":\"\\/\"}\r\n\r\n```\r\n"}}