{"action":"created","issue":{"url":"https://api.github.com/repos/camptocamp/puppet-openldap/issues/164","repository_url":"https://api.github.com/repos/camptocamp/puppet-openldap","labels_url":"https://api.github.com/repos/camptocamp/puppet-openldap/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/camptocamp/puppet-openldap/issues/164/comments","events_url":"https://api.github.com/repos/camptocamp/puppet-openldap/issues/164/events","html_url":"https://github.com/camptocamp/puppet-openldap/pull/164","id":179155769,"number":164,"title":"Mod global conf","user":{"login":"netman2k","id":6006067,"avatar_url":"https://avatars.githubusercontent.com/u/6006067?v=3","gravatar_id":"","url":"https://api.github.com/users/netman2k","html_url":"https://github.com/netman2k","followers_url":"https://api.github.com/users/netman2k/followers","following_url":"https://api.github.com/users/netman2k/following{/other_user}","gists_url":"https://api.github.com/users/netman2k/gists{/gist_id}","starred_url":"https://api.github.com/users/netman2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netman2k/subscriptions","organizations_url":"https://api.github.com/users/netman2k/orgs","repos_url":"https://api.github.com/users/netman2k/repos","events_url":"https://api.github.com/users/netman2k/events{/privacy}","received_events_url":"https://api.github.com/users/netman2k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-26T07:20:16Z","updated_at":"2016-10-24T06:50:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/camptocamp/puppet-openldap/pulls/164","html_url":"https://github.com/camptocamp/puppet-openldap/pull/164","diff_url":"https://github.com/camptocamp/puppet-openldap/pull/164.diff","patch_url":"https://github.com/camptocamp/puppet-openldap/pull/164.patch"},"body":"### Reason\r\nFor some case, We need to set multiple values into an option. but the globalconf type can not support this.\r\n\r\n### Examples\r\nfor instance, when I installed more than 3 OpenLDAP servers and set them as a n-way multiple-master.\r\nI need to set every server IDs in the cn=config global configuration. \r\n\r\nthe LDIF should be like this:\r\n```\r\ndn: cn=config\r\nchangetype: modify\r\nreplace: olcServerID\r\nolcServerID: 1 ldaps://master01.example.com\r\nolcServerID: 2 ldaps://master02.example.com\r\nolcServerID: 3 ldaps://master02.example.com\r\n```\r\nbut the globalconf only set, olcServerID: 3 ldaps://master02.example.net.\r\ncause it uses hash in the code olcServerID could have just one item because of the name.\r\n\r\nthis is a another example\r\nI needed to increase security level of the OpenLDAP. so I need to set olcSecurity on the cn=config global configuration\r\nthe LDIF should be \r\n```\r\ndn: cn=config\r\nchangetype: modify\r\nreplace: olcSecurity\r\nolcSecurity: update_ssf=128\r\nolcSecurity: simple_bind=128\r\nolcSecurity: tls=0\r\n```\r\nbut it can not be assigned as the same reason.\r\n\r\nAfter modified the openldap_globalconf/olc.rb, I can set these as these DSL codes\r\n\r\n### DSL\r\nConfiguring Mutiple ServerIDs as Global Setting(cn=config)\r\n```puppet\r\nopenldap::server::globalconf { 'ServerID':\r\n  ensure  => present,\r\n  value   => { 'ServerID' => [ '1 ldap://master1.example.com', '2 ldap://master2.example.com' ] }\r\n}\r\n```\r\n \r\n\r\nConfiguring Security as Global Setting(cn=config)\r\n```puppet\r\n  openldap::server::globalconf { 'Security':\r\n    ensure => present,\r\n    value => {\r\n      'Security' => [  'simple_bind=128',   'ssf=128',  'tls=0'   ],\r\n    } \r\n  }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/camptocamp/puppet-openldap/issues/comments/255661174","html_url":"https://github.com/camptocamp/puppet-openldap/pull/164#issuecomment-255661174","issue_url":"https://api.github.com/repos/camptocamp/puppet-openldap/issues/164","id":255661174,"user":{"login":"netman2k","id":6006067,"avatar_url":"https://avatars.githubusercontent.com/u/6006067?v=3","gravatar_id":"","url":"https://api.github.com/users/netman2k","html_url":"https://github.com/netman2k","followers_url":"https://api.github.com/users/netman2k/followers","following_url":"https://api.github.com/users/netman2k/following{/other_user}","gists_url":"https://api.github.com/users/netman2k/gists{/gist_id}","starred_url":"https://api.github.com/users/netman2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netman2k/subscriptions","organizations_url":"https://api.github.com/users/netman2k/orgs","repos_url":"https://api.github.com/users/netman2k/repos","events_url":"https://api.github.com/users/netman2k/events{/privacy}","received_events_url":"https://api.github.com/users/netman2k/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T06:50:28Z","updated_at":"2016-10-24T06:50:28Z","body":"Any idea? it seems nobody cares this matter."}}
{"actor":{"display_login":"netman2k"}}