{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/10834","labels_url":"https://api.github.com/repos/owncloud/core/issues/10834/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/10834/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/10834/events","html_url":"https://github.com/owncloud/core/issues/10834","id":41790745,"number":10834,"title":"LDAP/AD: Users primary group is not beeing used","user":{"login":"Finkregh","id":518090,"avatar_url":"https://avatars.githubusercontent.com/u/518090?v=3","gravatar_id":"","url":"https://api.github.com/users/Finkregh","html_url":"https://github.com/Finkregh","followers_url":"https://api.github.com/users/Finkregh/followers","following_url":"https://api.github.com/users/Finkregh/following{/other_user}","gists_url":"https://api.github.com/users/Finkregh/gists{/gist_id}","starred_url":"https://api.github.com/users/Finkregh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Finkregh/subscriptions","organizations_url":"https://api.github.com/users/Finkregh/orgs","repos_url":"https://api.github.com/users/Finkregh/repos","events_url":"https://api.github.com/users/Finkregh/events{/privacy}","received_events_url":"https://api.github.com/users/Finkregh/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/sev2-high","name":"sev2-high","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/v7.x","name":"v7.x","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/37","html_url":"https://github.com/owncloud/core/milestones/8.2-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/37/labels","id":993629,"number":37,"title":"8.2-current","description":"","creator":{"login":"craigpg","id":160667,"avatar_url":"https://avatars.githubusercontent.com/u/160667?v=3","gravatar_id":"","url":"https://api.github.com/users/craigpg","html_url":"https://github.com/craigpg","followers_url":"https://api.github.com/users/craigpg/followers","following_url":"https://api.github.com/users/craigpg/following{/other_user}","gists_url":"https://api.github.com/users/craigpg/gists{/gist_id}","starred_url":"https://api.github.com/users/craigpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigpg/subscriptions","organizations_url":"https://api.github.com/users/craigpg/orgs","repos_url":"https://api.github.com/users/craigpg/repos","events_url":"https://api.github.com/users/craigpg/events{/privacy}","received_events_url":"https://api.github.com/users/craigpg/received_events","type":"User","site_admin":false},"open_issues":635,"closed_issues":186,"state":"open","created_at":"2015-02-24T16:19:37Z","updated_at":"2015-07-24T14:47:19Z","due_on":"2015-10-20T04:00:00Z","closed_at":null},"comments":12,"created_at":"2014-09-03T08:01:17Z","updated_at":"2015-07-24T19:19:19Z","closed_at":null,"body":"### Steps to reproduce\r\nHave two users in a LDAP/AD backend, one (user1) with a primary group A, one (user2) with a primary group B and also membership of group A\r\n\r\n### Expected behaviour\r\nuser1 and user2 should be in the Owncloud-group A\r\n\r\n### Actual behaviour\r\nonly user2 is member of the Owncloud-group A\r\n\r\n### Server configuration\r\n**Operating system**: Linux, Debian v7.6, 64 bit\r\n\r\n**Web server:** nginx v1.6.1\r\n\r\n**Database:** sqlite\r\n\r\n**PHP version:** v5.4.32-1~dotdeb.1\r\n\r\n**ownCloud version:** 7.0.2 (git) / a3dcbe5bcee2df9706213deae24b892ae235e363\r\n\r\n**Updated from an older ownCloud or fresh install:** updated\r\n\r\n**List of activated apps:** Deleted files v0.6.2, LDAP user and group backend v0.4.3, Share Files v0.5.3 (3rdparty at b958a1e609b6bd09dd0fa29943b48eb024a31b75)\r\n\r\n**The content of config/config.php:** \r\n\r\n```\r\n<?php\r\n$CONFIG = array (\r\n  'instanceid' => 'x',\r\n  'passwordsalt' => 'x',\r\n  'trusted_domains' =>\r\n  array (\r\n    0 => 'x.de',\r\n    1 => '172.x',\r\n    2 => 'x.de',\r\n  ),\r\n  'datadirectory' => '/var/www/htdocs/x/data',\r\n  'dbtype' => 'sqlite3',\r\n  'version' => '7.0.2.1',\r\n  'installed' => true,\r\n  'ldapIgnoreNamingRules' => false,\r\n  'theme' => '',\r\n  'overwritehost' => 'x.de',\r\n  'overwriteprotocol' => 'https',\r\n  'overwritecondaddr' => '^(172\\\\.x)$',\r\n  'maintenance' => false,\r\n  'default_language' => 'de',\r\n  'knowledgebaseenabled' => false,\r\n  'mail_domain' => 'x.de',\r\n  'trashbin_retention_obligation' => 1,\r\n  'trashbin_auto_expire' => true,\r\n  'allow_user_to_change_display_name' => false,\r\n  'enable_avatars' => false,\r\n  'enable_previews' => false,\r\n  'xframe_restriction' => true,\r\n  'appstoreenabled' => false,\r\n  'check_for_working_htaccess' => false,\r\n  'log_rotate_size' => '5 MiB',\r\n  'loglevel' => '0',\r\n  'log_query' => '0',\r\n  'share_folder' => '/Shared',\r\n);\r\n```\r\n\r\n**LDAP config:**\r\n```\r\nsqlite> select * from oc_appconfig where appid='user_ldap';\r\nuser_ldap|installed_version|0.4.3\r\nuser_ldap|types|authentication\r\nuser_ldap|enabled|yes\r\nuser_ldap|ldap_host|y.y.de\r\nuser_ldap|ldap_port|389\r\nuser_ldap|ldap_backup_host|y.y.de\r\nuser_ldap|ldap_backup_port|\r\nuser_ldap|ldap_base|DC=y,DC=de\r\nuser_ldap|ldap_base_users|DC=y,DC=de\r\nuser_ldap|ldap_base_groups|DC=y,DC=de\r\nuser_ldap|ldap_dn|CN=admin,OU=y,OU=OE,DC=y,DC=de\r\nuser_ldap|ldap_agent_password|y\r\nuser_ldap|ldap_tls|0\r\nuser_ldap|ldap_nocase|0\r\nuser_ldap|ldap_turn_off_cert_check|0\r\nuser_ldap|ldap_display_name|displayname\r\nuser_ldap|ldap_userfilter_objectclass|organizationalPerson\r\nuser_ldap|ldap_userfilter_groups|\r\nuser_ldap|ldap_userlist_filter|(&(objectCategory=person)(objectClass=user))\r\nuser_ldap|ldap_user_filter_mode|1\r\nuser_ldap|ldap_group_filter|(&(|(objectclass=group)))\r\nuser_ldap|ldap_group_filter_mode|1\r\nuser_ldap|ldap_groupfilter_objectclass|group\r\nuser_ldap|ldap_groupfilter_groups|\r\nuser_ldap|ldap_group_display_name|cn\r\nuser_ldap|ldap_group_member_assoc_attribute|member\r\nuser_ldap|ldap_login_filter|(&(&(objectCategory=person)(objectClass=user))(|(sAMAccountName=%uid)))\r\nuser_ldap|ldap_login_filter_mode|1\r\nuser_ldap|ldap_loginfilter_email|0\r\nuser_ldap|ldap_loginfilter_username|0\r\nuser_ldap|ldap_loginfilter_attributes|sAMAccountName\r\nuser_ldap|ldap_quota_attr|\r\nuser_ldap|ldap_quota_def|\r\nuser_ldap|ldap_email_attr|\r\nuser_ldap|ldap_cache_ttl|600\r\nuser_ldap|ldap_override_main_server|0\r\nuser_ldap|ldap_configuration_active|1\r\nuser_ldap|ldap_attributes_for_user_search|\r\nuser_ldap|ldap_attributes_for_group_search|\r\nuser_ldap|home_folder_naming_rule|\r\nuser_ldap|has_memberof_filter_support|1\r\nuser_ldap|ldap_expert_username_attr|sAMAccountName\r\nuser_ldap|ldap_expert_uuid_user_attr|\r\nuser_ldap|ldap_expert_uuid_group_attr|\r\nuser_ldap|last_jpegPhoto_lookup|0\r\nuser_ldap|ocsid|166061\r\nuser_ldap|ldap_nested_groups|0\r\nuser_ldap|ldap_paging_size|500\r\n```\r\n\r\n**Are you using external storage, if yes which one:** local\r\n\r\n**Are you using encryption:** no\r\n\r\n### Client configuration\r\n**Browser:** Chrome 37\r\n\r\n**Operating system:** Windows 8.1 / 64 bit\r\n\r\n### Logs\r\n#### Web server error log\r\n```\r\n2014/09/03 09:36:26 [error] 22220#0: *487 rewrite or internal redirection cycle while internally redirecting to \"/index.html\", client: 172.x, server: x, request: \"GET /y/core/js/jquery-1.10.0.min.map HTTP/1.1\", host: \"x.de\"\r\n```\r\n\r\n#### Browser log\r\n```\r\nGET http://x.de/y/core/js/jquery-1.10.0.min.map 500 (Internal Server Error) \r\n```\r\n\r\nFollowing #7052 : the php-module bcmath is enabled (`php -m|grep bcmath`)"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/124653251","html_url":"https://github.com/owncloud/core/issues/10834#issuecomment-124653251","issue_url":"https://api.github.com/repos/owncloud/core/issues/10834","id":124653251,"user":{"login":"tomcat-sdb","id":13487223,"avatar_url":"https://avatars.githubusercontent.com/u/13487223?v=3","gravatar_id":"","url":"https://api.github.com/users/tomcat-sdb","html_url":"https://github.com/tomcat-sdb","followers_url":"https://api.github.com/users/tomcat-sdb/followers","following_url":"https://api.github.com/users/tomcat-sdb/following{/other_user}","gists_url":"https://api.github.com/users/tomcat-sdb/gists{/gist_id}","starred_url":"https://api.github.com/users/tomcat-sdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomcat-sdb/subscriptions","organizations_url":"https://api.github.com/users/tomcat-sdb/orgs","repos_url":"https://api.github.com/users/tomcat-sdb/repos","events_url":"https://api.github.com/users/tomcat-sdb/events{/privacy}","received_events_url":"https://api.github.com/users/tomcat-sdb/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T19:19:18Z","updated_at":"2015-07-24T19:19:18Z","body":"Checking the log, I think I found the issue.  It's looking for the attribute: \"primarygroupid\" to find the user's gid which isn't the correct attribute for our setup.  I don't see a way to specify what attribute to use for the user's gid..."}}