{"id":1231,"date":"2021-10-31T11:31:58","date_gmt":"2021-10-31T02:31:58","guid":{"rendered":"http:\/\/192.168.20.1\/?p=1231"},"modified":"2021-10-31T11:31:58","modified_gmt":"2021-10-31T02:31:58","slug":"redmine-authentication-with-openldap","status":"publish","type":"post","link":"https:\/\/rlab.cavtime.net\/?p=1231","title":{"rendered":"Redmine Authentication with OpenLDAP"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>Redmine \u306e\u8a8d\u8a3c\u3092 OpenLDAP \u306b\u3059\u308b\u3002<\/p>\n<h2>Requirement<\/h2>\n<ul>\n<li>Redmine \u306e\u8a8d\u8a3c\u3092 OpenLDAP \u306b\u3059\u308b\u3002<\/li>\n<li>Redmine \u672a\u767b\u9332\u30e6\u30fc\u30b6\u30fc\u306f\u6700\u521d\u306bRedmine\u30ed\u30b0\u30a4\u30f3\u6642\u306b OpenLDAP \u8a8d\u8a3c\u5f8c\u306b\u81ea\u52d5\u7684\u306b Redmine \u306e\u30e6\u30fc\u30b6\u30fc\u767b\u9332\u3092\u3059\u308b\u3002<\/li>\n<\/ul>\n<h2>Reference<\/h2>\n<h2>Environment<\/h2>\n<p>OpenLDAP Host<\/p>\n<pre>$ cat \/etc\/os-release\r\nNAME=\"Ubuntu\"\r\nVERSION=\"20.04.3 LTS (Focal Fossa)\"\r\nID=ubuntu\r\nID_LIKE=debian\r\nPRETTY_NAME=\"Ubuntu 20.04.3 LTS\"\r\nVERSION_ID=\"20.04\"\r\nHOME_URL=\"https:\/\/www.ubuntu.com\/\"\r\nSUPPORT_URL=\"https:\/\/help.ubuntu.com\/\"\r\nBUG_REPORT_URL=\"https:\/\/bugs.launchpad.net\/ubuntu\/\"\r\nPRIVACY_POLICY_URL=\"https:\/\/www.ubuntu.com\/legal\/terms-and-policies\/privacy-policy\"\r\nVERSION_CODENAME=focal\r\nUBUNTU_CODENAME=focal\r\n$\r\n$ slapd -V\r\n@(#) $OpenLDAP: slapd  (Ubuntu) (Apr  8 2021 04:22:01) $\r\n        Debian OpenLDAP Maintainers &lt;pkg-openldap-devel@lists.alioth.debian.org&gt;\r\n\r\n$\r\n$ sudo apt list slapd\r\nListing... Done\r\nslapd\/focal-updates,now 2.4.49+dfsg-2ubuntu1.8 amd64 [installed]\r\nN: There are 2 additional versions. Please use the '-a' switch to see them.\r\n$\r\n<\/pre>\n<p>Redmine Host<\/p>\n<pre>$ cat \/etc\/os-release\r\nPRETTY_NAME=\"Debian GNU\/Linux 10 (buster)\"\r\nNAME=\"Debian GNU\/Linux\"\r\nVERSION_ID=\"10\"\r\nVERSION=\"10 (buster)\"\r\nVERSION_CODENAME=buster\r\nID=debian\r\nHOME_URL=\"https:\/\/www.debian.org\/\"\r\nSUPPORT_URL=\"https:\/\/www.debian.org\/support\"\r\nBUG_REPORT_URL=\"https:\/\/bugs.debian.org\/\"\r\n$\r\n<\/pre>\n<pre>Environment:\r\n  Redmine version                4.2.3.stable\r\n  Ruby version                   2.6.8-p205 (2021-07-07) [x86_64-linux]\r\n  Rails version                  5.2.6\r\n  Environment                    production\r\n  Database adapter               Mysql2\r\n  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter\r\n  Mailer delivery                smtp\r\nSCM:\r\n  Subversion                     1.14.1\r\n  Git                            2.33.0\r\n  Filesystem                     \r\nRedmine plugins:\r\n  no plugin installed\r\n<\/pre>\n<h2>OpenLDAP Configuration<\/h2>\n<pre>$ sudo ldapsearch -x -D cn=admin,dc=travelersmedia,dc=jp -W -LLL -b ou=people,dc=travelersmedia,dc=jp\r\nEnter LDAP Password:\r\ndn: ou=people,dc=travelersmedia,dc=jp\r\nobjectClass: organizationalUnit\r\nou: people\r\n\r\ndn: uid=user01,ou=people,dc=travelersmedia,dc=jp\r\nobjectClass: inetOrgPerson\r\ncn: user01 rlab\r\nsn: rlab\r\ngivenName: user01\r\nuserPassword:: e1NTSEF9c1JIektJRUlhemErS24wbElLaEt2SkZENnR2V0swZ0U=\r\nuid: user01\r\nmail: user01@travelersmedia.jp\r\n\r\n$\r\n<\/pre>\n<h2>Redmine Configuration<\/h2>\n<p><a href=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/Redmine_04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/Redmine_04-1024x917.png\" alt=\"\" width=\"1024\" height=\"917\" \/><\/a><\/p>\n<p><a href=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/Redmine_05.png\"><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/Redmine_05-1024x917.png\" alt=\"\" width=\"1024\" height=\"917\" \/><\/a><\/p>\n<h2>Authentication Test<\/h2>\n<h3>Redmine\u672a\u767b\u9332\u30e6\u30fc\u30b6\u30fc<\/h3>\n<p><a href=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/Redmine_10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/Redmine_10-1024x917.png\" alt=\"\" width=\"1024\" height=\"917\" \/><\/a><\/p>\n<p>\u30ed\u30b0\u30a4\u30f3ID\uff1a\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff08LDAP\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\uff09<\/p>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\uff1aLDAP\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30d1\u30b9\u30ef\u30fc\u30c9<\/p>\n<p><a href=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/Redmine_11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/Redmine_11-1024x917.png\" alt=\"\" width=\"1024\" height=\"917\" \/><\/a><\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u306b\u300cLogged in as user01@travelersmedia.jp\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<p><a href=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/Redmine_13.png\"><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/Redmine_13-1024x917.png\" alt=\"\" width=\"1024\" height=\"917\" \/><\/a><\/p>\n<p>LDAP\u306e\u30e6\u30fc\u30b6\u30fc\u7ba1\u7406\u3092\u8868\u793a\u3059\u308b\u3068user01@travelersmedia.jp\u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Redmine \u306e\u8a8d\u8a3c\u3092 OpenLDAP \u306b\u3059\u308b\u3002 Requirement Redmine \u306e\u8a8d\u8a3c\u3092 OpenLDAP \u306b\u3059\u308b\u3002 Redmine \u672a\u767b\u9332\u30e6\u30fc\u30b6\u30fc\u306f\u6700\u521d\u306bRedmine\u30ed\u30b0\u30a4\u30f3\u6642\u306b Op [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,21],"tags":[],"class_list":["post-1231","post","type-post","status-publish","format-standard","hentry","category-ldap","category-projectmanagement"],"_links":{"self":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1231"}],"version-history":[{"count":2,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1231\/revisions"}],"predecessor-version":[{"id":1238,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1231\/revisions\/1238"}],"wp:attachment":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}