{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/15504","labels_url":"https://api.github.com/repos/owncloud/core/issues/15504/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/15504/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/15504/events","html_url":"https://github.com/owncloud/core/issues/15504","id":67332987,"number":15504,"title":"Share information not updated if LDAP user is added to LDAP group","user":{"login":"lnxbil","id":727711,"avatar_url":"https://avatars.githubusercontent.com/u/727711?v=3","gravatar_id":"","url":"https://api.github.com/users/lnxbil","html_url":"https://github.com/lnxbil","followers_url":"https://api.github.com/users/lnxbil/followers","following_url":"https://api.github.com/users/lnxbil/following{/other_user}","gists_url":"https://api.github.com/users/lnxbil/gists{/gist_id}","starred_url":"https://api.github.com/users/lnxbil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lnxbil/subscriptions","organizations_url":"https://api.github.com/users/lnxbil/orgs","repos_url":"https://api.github.com/users/lnxbil/repos","events_url":"https://api.github.com/users/lnxbil/events{/privacy}","received_events_url":"https://api.github.com/users/lnxbil/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"},{"url":"https://api.github.com/repos/owncloud/core/labels/sharing","name":"sharing","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-09T10:40:38Z","updated_at":"2015-04-17T09:41:24Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\n1. Add an user to a group with already shared folders\r\n2. observe that the new folder is not shared to the new group member\r\n\r\nThis does sometimes work and sometimes it does not. If I create a new folder and share it to the same group after adding the user to their group, it works as expected, yet it does not work for already shared folders.\r\n\r\n### Expected behaviour\r\nThe folder should be shared to all group members.\r\n\r\n### Actual behaviour\r\nThe folder does not appear to be shared (not visible).\r\n\r\n### Server configuration\r\n**Operating system**:\r\nDebian Wheezy\r\n**Web server:**\r\nApache 2.2.22\r\n**Database:**\r\nPostgreSQL 9.1.5\r\n**PHP version:**\r\n5.4.36\r\n**ownCloud version:** (see ownCloud admin page)\r\n7.0.5\r\n**Updated from an older ownCloud or fresh install:**\r\nupdated from 5 to 6 to 7 (debian packages)\r\n**List of activated apps:**\r\nactivity, external sites, full text search, ldap backend, mail tempalte editor, pdf viewer, pictures, share files, text editor\r\n**The content of config/config.php:**\r\n```\r\n<?php\r\n$CONFIG = array (\r\n  'datadirectory' => '/var/www/owncloud/data',\r\n  'version' => '7.0.5.2',\r\n  'installed' => true,\r\n  'maintenance' => false,\r\n  'dbtype' => 'pgsql',\r\n  'dbname' => 'owncloud',\r\n  'dbhost' => 'localhost',\r\n  'dbtableprefix' => 'oc_',\r\n  'dbuser' => 'owncloud',\r\n  'forcessl' => false,\r\n  'updatechecker' => false,\r\n  'default_language' => 'de_DE',\r\n  'appstoreenabled' => true,\r\n  'enable_previews' => false,\r\n  'apps_paths' => \r\n  array (\r\n    0 => \r\n    array (\r\n      'path' => '/var/www/owncloud/apps',\r\n      'url' => '/apps',\r\n      'writable' => false,\r\n    ),\r\n    1 => \r\n    array (\r\n      'path' => '/var/www/owncloud/myapps',\r\n      'url' => '/myapps',\r\n      'writable' => true,\r\n    ),\r\n  ),\r\n  'ldapIgnoreNamingRules' => false,\r\n  'share_folder' => '/Shared',\r\n  'trusted_domains' => \r\n  array (\r\n    0 => 'blabla',\r\n  ),\r\n  'knowledgebaseenabled' => false,\r\n  'loglevel' => 1,\r\n  'logtimezone' => 'Europe/Berlin',\r\n  'log_authfailip' => true,\r\n  'log_rotate_size' => 104857600,\r\n  'enable_avatars' => false,\r\n}\r\n```\r\n\r\n**Are you using external storage, if yes which one:** local/smb/sftp/...\r\nno\r\n**Are you using encryption:** yes/no\r\nno\r\n**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...\r\nLDAP\r\n#### LDAP configuration (delete this part if not used)\r\n\r\n```\r\n/var/www/owncloud $ php -f occ ldap:show-config\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                     | xxxx,dc=de                                               |\r\n| ldapBaseGroups               | xxxx,dc=de                                                |\r\n| ldapBaseUsers                | xxxx,dc=de                                                |\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              | objectClass=posixGroup                                                    |\r\n| ldapGroupFilterGroups        |                                                                           |\r\n| ldapGroupFilterMode          | 1                                                                         |\r\n| ldapGroupFilterObjectclass   |                                                                           |\r\n| ldapGroupMemberAssocAttr     | memberUid                                                                 |\r\n| ldapHost                     | localhost                                                                 |\r\n| ldapIgnoreNamingRules        |                                                                           |\r\n| ldapLoginFilter              | (&(objectclass=*)(|(|(mailPrimaryAddress=%uid)(mail=%uid))(|(uid=%uid)))) |\r\n| ldapLoginFilterAttributes    |                                                                           |\r\n| ldapLoginFilterEmail         | 1                                                                         |\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                     | 389                                                                       |\r\n| ldapQuotaAttribute           | roomNumber                                                                |\r\n| ldapQuotaDefault             | 256 MB                                                                    |\r\n| ldapTLS                      | 0                                                                         |\r\n| ldapUserDisplayName          | uid                                                                       |\r\n| ldapUserFilter               | (objectclass=*)                                                           |\r\n| ldapUserFilterGroups         |                                                                           |\r\n| ldapUserFilterMode           | 1                                                                         |\r\n| ldapUserFilterObjectclass    |                                                                           |\r\n| ldapUuidGroupAttribute       | auto                                                                      |\r\n| ldapUuidUserAttribute        | auto                                                                      |\r\n| turnOffCertCheck             | 0                                                                         |\r\n+------------------------------+---------------------------------------------------------------------------+\r\n```\r\n\r\n### Additional Notes\r\n\r\nIf I unshare and reshare the folder to the group it yields to correct behaviour, yet this is not applicable if you have a lot of groups and a lot of users."},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/93953586","html_url":"https://github.com/owncloud/core/issues/15504#issuecomment-93953586","issue_url":"https://api.github.com/repos/owncloud/core/issues/15504","id":93953586,"user":{"login":"blizzz","id":2184312,"avatar_url":"https://avatars.githubusercontent.com/u/2184312?v=3","gravatar_id":"","url":"https://api.github.com/users/blizzz","html_url":"https://github.com/blizzz","followers_url":"https://api.github.com/users/blizzz/followers","following_url":"https://api.github.com/users/blizzz/following{/other_user}","gists_url":"https://api.github.com/users/blizzz/gists{/gist_id}","starred_url":"https://api.github.com/users/blizzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blizzz/subscriptions","organizations_url":"https://api.github.com/users/blizzz/orgs","repos_url":"https://api.github.com/users/blizzz/repos","events_url":"https://api.github.com/users/blizzz/events{/privacy}","received_events_url":"https://api.github.com/users/blizzz/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T09:41:24Z","updated_at":"2015-04-17T09:41:24Z","body":"I did following test today with stable7:\r\n\r\n1. Have an LDAP group\r\n2. as local admin, share a folder with full permissions and add two files\r\n3. as a group member log in. the folder is available, uploading a file works.\r\n4. add a new member to this group\r\n5. verify on Users page that the new member is part of the group\r\n6. log in as new member -> the shared folder is available. Even without the background job run.\r\n\r\nI.e. could not reproduce. But you state is sometimes work and sometimes does not … any observations or suggestions?"}}