{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/22313","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/22313/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/22313/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/22313/events","html_url":"https://github.com/owncloud/core/issues/22313","id":132931499,"number":22313,"title":" user data removed (on clients) on LDAP outage on the server","user":{"login":"umlaeute","id":214034,"avatar_url":"https://avatars.githubusercontent.com/u/214034?v=3","gravatar_id":"","url":"https://api.github.com/users/umlaeute","html_url":"https://github.com/umlaeute","followers_url":"https://api.github.com/users/umlaeute/followers","following_url":"https://api.github.com/users/umlaeute/following{/other_user}","gists_url":"https://api.github.com/users/umlaeute/gists{/gist_id}","starred_url":"https://api.github.com/users/umlaeute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umlaeute/subscriptions","organizations_url":"https://api.github.com/users/umlaeute/orgs","repos_url":"https://api.github.com/users/umlaeute/repos","events_url":"https://api.github.com/users/umlaeute/events{/privacy}","received_events_url":"https://api.github.com/users/umlaeute/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":1,"created_at":"2016-02-11T10:03:53Z","updated_at":"2016-02-11T13:06:45Z","closed_at":null,"body":"### Steps to reproduce\r\n1. setup owncloud to authenticate users against LDAP\r\n3. have the oc-client of user `ada` automatically sync\r\n2. remove user `ada` from LDAP\r\n\r\n\r\n### Expected behaviour\r\nthe server tells the client that the user does not exist and that it should go away.\r\nthe client should then stop synching and try again after some time (10 minutes).\r\n\r\n### Actual behaviour\r\nthe server tells the client that there is no data.\r\nthe client syncs with the empty directory, removing all files previously synched.\r\n\r\nleading to **data loss** on the client-side.\r\n\r\n### Server configuration\r\n**Operating system**:\r\n\r\n`Debian/jessie 8.3 (amd64)`\r\n\r\n**Web server:**\r\n\r\n`apache 2.4.10-10+deb8u4`\r\n\r\n**Database:**\r\n\r\n`PostgreSQL 9.4.5-0+deb8u`\r\n\r\n**PHP version:**\r\n\r\n`5.6.17+dfsg-0+deb8u`\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\n\r\n`7.0.4+dfsg-4~deb8u4`\r\n\r\n**Updated from an older ownCloud or fresh install:**\r\n\r\nupdated\r\n\r\n**Signing status (ownCloud 9.0 and above):**\r\n\r\nn/a\r\n\r\n**List of activated apps:**\r\n\r\n- Enabled\r\n - activity\r\n - calendar\r\n - contacts\r\n - documents\r\n - files\r\n - files_pdfviewer\r\n - files_sharing\r\n - files_texteditor\r\n - files_trashbin\r\n - files_versions\r\n - files_videoviewer\r\n - firstrunwizard\r\n - gallery\r\n - search_lucene\r\n - user_ldap\r\n- Disabled:\r\n - admin_dependencies_chk\r\n - bookmarks\r\n - external\r\n - files_encryption\r\n - files_external\r\n - templateeditor\r\n - user_external\r\n - user_webdavauth\r\n\r\n**The content of config/config.php:**\r\n\r\n~~~\r\n<?php\r\n$CONFIG = array (\r\n  'instanceid' => 'ocb6155c0dd2',\r\n  'dbtype' => 'pgsql',\r\n  'passwordsalt' => 'XXX',\r\n  'datadirectory' => '/usr/share/owncloud/data',\r\n  'version' => '7.0.4.2',\r\n  'appstoreenabled' => false,\r\n  'apps_paths' => \r\n  array (\r\n    0 => \r\n    array (\r\n      'path' => '/usr/share/owncloud/apps',\r\n      'url' => '/apps',\r\n      'writable' => false,\r\n    ),\r\n  ),\r\n  'dbname' => 'owncloud',\r\n  'dbhost' => 'localhost',\r\n  'dbtableprefix' => 'oc_',\r\n  'dbuser' => 'XXX',\r\n  'dbpassword' => 'XXX',\r\n  'installed' => true,\r\n  'ldapIgnoreNamingRules' => false,\r\n  'forcessl' => true,\r\n  'theme' => 'example',\r\n  'loglevel' => '2',\r\n  'name' => 'iemCloud',\r\n  'title' => 'iemCloud',\r\n  'maintenance' => false,\r\n  'trusted_domains' => \r\n  array (\r\n    0 => 'cloud.example.com',\r\n    1 => 'cloud.local',\r\n  ),\r\n  'mail_from_address' => 'noc',\r\n  'mail_smtpmode' => 'smtp',\r\n  'mail_domain' => 'example.com',\r\n  'mail_smtphost' => 'mail.local',\r\n  'mail_smtpport' => '25',\r\n  'secret' => 'XXX',\r\n);\r\n~~~\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\n\r\nNFS\r\n\r\n**Are you using encryption:**\r\n\r\nyes (`https`)\r\n\r\nthe data itself is not encrypted on the storage.\r\n\r\n**Are you using an external user-backend, if yes which one:**\r\n\r\nLDAP\r\n\r\n#### LDAP configuration (delete this part if not used)\r\n\r\n~~~\r\n+------------------------------+---------------------------------------------+\r\n| Configuration                | s02                                         |\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  | cn;uid;gecos                                |\r\n| ldapBackupHost               |                                             |\r\n| ldapBackupPort               |                                             |\r\n| ldapBase                     | o=Staff,o=organization,dc=example,dc=com    |\r\n| ldapBaseGroups               | o=organization,dc=example,dc=com    |\r\n| ldapBaseUsers                | ou=people,o=Staff,o=organization,dc=example,dc=com  |\r\n| ldapCacheTTL                 | 600                                         |\r\n| ldapConfigurationActive      | 1                                           |\r\n| ldapEmailAttribute           | mail                                        |\r\n| ldapExperiencedAdmin         | 1                                           |\r\n| ldapExpertUUIDGroupAttr      |                                             |\r\n| ldapExpertUUIDUserAttr       |                                             |\r\n| ldapExpertUsernameAttr       |                                             |\r\n| ldapGroupDisplayName         | cn                                          |\r\n| ldapGroupFilter              |                                             |\r\n| ldapGroupFilterGroups        |                                             |\r\n| ldapGroupFilterMode          | 1                                           |\r\n| ldapGroupFilterObjectclass   | posixGroup                                  |\r\n| ldapGroupMemberAssocAttr     | uniqueMember                                |\r\n| ldapHost                     | ldaps://ldap.example.com                  |\r\n| ldapIgnoreNamingRules        |                                             |\r\n| ldapLoginFilter              | (&(|(objectclass=inetOrgPerson))(uid=%uid)) |\r\n| ldapLoginFilterAttributes    |                                             |\r\n| ldapLoginFilterEmail         | 0                                           |\r\n| ldapLoginFilterMode          | 1                                           |\r\n| ldapLoginFilterUsername      | 1                                           |\r\n| ldapNestedGroups             | 0                                           |\r\n| ldapNoCase                   | 0                                           |\r\n| ldapOverrideMainServer       | 0                                           |\r\n| ldapPagingSize               | 500                                         |\r\n| ldapPort                     | 636                                         |\r\n| ldapQuotaAttribute           |                                             |\r\n| ldapQuotaDefault             |                                             |\r\n| ldapTLS                      | 0                                           |\r\n| ldapUserDisplayName          | cn                                          |\r\n| ldapUserFilter               | (|(objectclass=inetOrgPerson))              |\r\n| ldapUserFilterGroups         |                                             |\r\n| ldapUserFilterMode           | 1                                           |\r\n| ldapUserFilterObjectclass    | inetOrgPerson                               |\r\n| ldapUuidGroupAttribute       | auto                                        |\r\n| ldapUuidUserAttribute        | auto                                        |\r\n| turnOffCertCheck             | 0                                           |\r\n+------------------------------+---------------------------------------------+\r\n~~~\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/182855861","html_url":"https://github.com/owncloud/core/issues/22313#issuecomment-182855861","issue_url":"https://api.github.com/repos/owncloud/core/issues/22313","id":182855861,"user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T13:06:45Z","updated_at":"2016-02-11T13:06:45Z","body":"ownCloud 7 will only receive security updates, you might want to try upgrading to more recent versions.\r\n\r\n@MorrisJobke @blizzz in which version was the LDAP availability fix in ?"}}