{"id":1179,"date":"2021-10-10T16:46:46","date_gmt":"2021-10-10T07:46:46","guid":{"rendered":"http:\/\/192.168.20.1\/?p=1179"},"modified":"2021-10-10T16:47:32","modified_gmt":"2021-10-10T07:47:32","slug":"install-fusiondirectory-and-openldap-on-debian-buster-10-10","status":"publish","type":"post","link":"https:\/\/rlab.cavtime.net\/?p=1179","title":{"rendered":"Install FusionDirectory and OpenLDAP on Debian Buster (10.10)"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f Debian Stretch (10.10) \u306b OpenLDAP \u3068 FusionDirectory \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<h2>Reference<\/h2>\n<ul>\n<li><a href=\"https:\/\/cdimage.debian.org\/mirror\/cdimage\/archive\/10.10.0\/\" target=\"_blank\" rel=\"noopener\">Debian 10 ( Buster ) Download<\/a><\/li>\n<li><a href=\"https:\/\/fusiondirectory-user-manual.readthedocs.io\/en\/latest\/fusiondirectory\/install\/index.html\" target=\"_blank\" rel=\"noopener\">FusionDirectroy Installation<\/a><\/li>\n<\/ul>\n<h2>Environment<\/h2>\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$ uname -a\r\nLinux svr-ldap 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU\/Linux\r\n$\r\n<\/pre>\n<pre>\u00a9 2002-2021 The FusionDirectory team, 1.3O<\/pre>\n<h2>OpenLDAP<\/h2>\n<pre>$ su -\r\n# apt -y install slapd ldap-utils\r\n+--------------------------| Configuring slapd |-------------------------+\r\n | Please enter the password for the admin entry in your LDAP directory.  |\r\n |                                                                        |\r\n | Administrator password:                                                |\r\n |                                                                        |\r\n | ********______________________________________________________________ |\r\n |                                                                        |\r\n |                                                                    |\r\n |                                                                        |\r\n +------------------------------------------------------------------------+\r\n#\r\n<\/pre>\n<h2>FusionDirectory<\/h2>\n<p>gpg key<\/p>\n<pre># gpg --keyserver keys.openpgp.org --recv-key 0xFE0FEAE5AC483A86\r\n# gpg --export -a \"FusionDirectory Packages Signing Key &lt;contact@fusiondirectory.org&gt;\" &gt; FD-archive-key\r\n# apt-key add FD-archive-key\r\n<\/pre>\n<p>Repository<\/p>\n<pre># vim \/etc\/apt\/sources.list.d\/fusiondirectory-release.list\r\n#fusiondirectory repository\r\ndeb https:\/\/public.fusiondirectory.org\/stretch-fusiondirectory-release\/ stretch main\r\n#\r\n# vim \/etc\/apt\/sources.list.d\/schema2ldif-release.list\r\n#latest version of schema2ldif\r\ndeb https:\/\/public.fusiondirectory.org\/stretch-schema2ldif-release\/ stretch main\r\n#\r\n<\/pre>\n<p>FusionDirectory<\/p>\n<pre># apt install php7.3-xml \r\n# apt install locales-all \r\n# apt install apt-transport-https\r\n# apt update\r\n# apt-get install fusiondirectory\r\n# apt-get install fusiondirectory-schema\r\n<\/pre>\n<p>FusionDirectory Schema Setup<\/p>\n<pre># fusiondirectory-insert-schema\r\n<\/pre>\n<h2>Web Access<\/h2>\n<p>http:\/\/[ip address]\/futiondirectory<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_10_02-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<h2>FusionDirectory Web Setup<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_10_02-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<pre># echo -n bm3nsvljnldc9vqqsq6oaesti2 &gt; \/var\/cache\/fusiondirectory\/fusiondirectory.auth\r\n<\/pre>\n<p>[Next] \u3092 click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_15_48-847x700.png\" alt=\"\" width=\"847\" height=\"700\" \/><\/p>\n<p>[Japanese(\u65e5\u672c\u8a9e)]\u3092\u9078\u629e\u3057[Next] \u3092 click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_17_13-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<p>[Next] \u3092 click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_18_09-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<p>LDAP admin \u306e password \u3092\u5165\u529b\u3057[Reflesh]\u3092click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_18_39-847x552.png\" alt=\"\" width=\"847\" height=\"552\" \/><\/p>\n<p>[Next] \u3092 click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_19_55-777x847.png\" alt=\"\" width=\"777\" height=\"847\" \/><\/p>\n<p>Timezone [Asia\/Tokyo]\u3092\u9078\u629e\u3057[Next] \u3092 click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_20_25-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<p>Inspecting object classes in root object \u306e [Migrate]\u3092click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_21_19-847x552.png\" alt=\"\" width=\"847\" height=\"552\" \/><\/p>\n<p>[Migrate]\u3092click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_21_59-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<p>Checking for super administrator \u306e [Create] \u3092 click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_22_39-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<p>User ID : fd-admin \u306e Password \u3092\u5165\u529b\u3057 [Apply] \u3092 click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_23_06-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<p>Checking for default ACL roles and groups \u306e [Migrate] \u3092 click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_23_47-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<p>[Next] \u3092 click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_24_24-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<p>[Download Configuration] \u3092 click \u3057 Download \u3057\u305f &#8220;fusiondirectory.conf&#8221; \u306e\u5185\u5bb9\u3092\/etc\/fusiondirectory\u306b\u4fdd\u5b58<\/p>\n<pre># vim \/etc\/fusiondirectory\/fusiondirectory.conf\r\n&lt;?xml version=\"1.0\"?&gt;\r\n&lt;conf&gt;\r\n  &lt;!-- Main section **********************************************************\r\n       The main section defines global settings, which might be overridden by\r\n       each location definition inside.\r\n\r\n       For more information about the configuration parameters, take a look at\r\n       the FusionDirectory.conf(5) manual page.\r\n  --&gt;\r\n  &lt;main default=\"default\"\r\n        logging=\"TRUE\"\r\n        displayErrors=\"FALSE\"\r\n        forceSSL=\"FALSE\"\r\n        templateCompileDirectory=\"\/var\/spool\/fusiondirectory\/\"\r\n        debugLevel=\"0\"\r\n    &gt;\r\n\r\n    &lt;!-- Location definition --&gt;\r\n    &lt;location name=\"default\"\r\n    &gt;\r\n        &lt;referral URI=\"ldap:\/\/localhost:389\" base=\"dc=travelersmedia,dc=jp\"\r\n                        adminDn=\"cn=admin,dc=travelersmedia,dc=jp\"\r\n                        adminPassword=\"passw$rd1234\" \/&gt;\r\n    &lt;\/location&gt;\r\n  &lt;\/main&gt;\r\n&lt;\/conf&gt;<\/pre>\n<p>\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c<\/p>\n<pre># fusiondirectory-setup --check-config\r\nChecking FusionDirectory's config file\r\n\/etc\/fusiondirectory\/fusiondirectory.conf exists\u2026\r\n\/etc\/fusiondirectory\/fusiondirectory.conf is not set properly, do you want to fix it ?:  [Yes\/No]?\r\nyes\r\n#\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-setup-php-2021-10-09-18_24_24-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<p>[Next]\u3092click<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-index-php-2021-10-09-18_32_47-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n<p>Login : fd-admin<\/p>\n<p>password : configured password<\/p>\n<p>\u3067Login<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-responsive right-block\" src=\"https:\/\/rlab.cavtime.net\/wp-content\/uploads\/2021\/10\/screencapture-192-168-1-61-fusiondirectory-main-php-2021-10-09-18_34_11-847x607.png\" alt=\"\" width=\"847\" height=\"607\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview \u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f Debian Stretch (10.10) \u306b OpenLDAP \u3068 FusionDirectory \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 Reference Debian 10 ( Bus [&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,67],"tags":[],"class_list":["post-1179","post","type-post","status-publish","format-standard","hentry","category-ldap","category-linux"],"_links":{"self":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1179","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=1179"}],"version-history":[{"count":4,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1179\/revisions"}],"predecessor-version":[{"id":1183,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1179\/revisions\/1183"}],"wp:attachment":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}