{"id":1152,"date":"2021-10-09T18:35:00","date_gmt":"2021-10-09T09:35:00","guid":{"rendered":"http:\/\/192.168.20.1\/?p=1152"},"modified":"2021-10-09T19:20:37","modified_gmt":"2021-10-09T10:20:37","slug":"install-fusiondirectory-on-debian-stretch-9-13","status":"publish","type":"post","link":"https:\/\/rlab.cavtime.net\/?p=1152","title":{"rendered":"Install FusionDirectory on Debian Stretch (9.13)"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f Debian Stretch (9.13) \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:\/\/www.debian.org\/releases\/stretch\/debian-installer\/\" target=\"_blank\" rel=\"noopener\">Debian 9 ( Stretch ) 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 9 (stretch)\"\r\nNAME=\"Debian GNU\/Linux\"\r\nVERSION_ID=\"9\"\r\nVERSION=\"9 (stretch)\"\r\nVERSION_CODENAME=stretch\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 fd 4.9.0-16-amd64 #1 SMP Debian 4.9.272-2 (2021-07-19) 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 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-17_56_15-847x608.png\" alt=\"\" width=\"847\" height=\"608\" \/><\/p>\n<h2>locale check and modify<\/h2>\n<p>OS \u306e Locale \u3068 PHP \u306e Locale \u306e\u30df\u30b9\u30de\u30c3\u30c1\u3092\u4fee\u6b63<\/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-17_58_04-847x554.png\" alt=\"\" width=\"847\" height=\"554\" \/><\/p>\n<pre>PHP error \"Setting locale to ja_JP.UTF-8 failed\"\r\nTrace[1]: function trigger_error\tFile: \/usr\/share\/fusiondirectory\/include\/class_Language.inc (Line 50)\tType: -\r\nArguments: \"Setting locale to ja_JP.UTF-8 failed\"\r\nTrace[2]: class Language \/ function init\tFile: \/usr\/share\/fusiondirectory\/html\/setup.php (Line 89)\tType: static\r\nArguments: \"ja_JP.UTF-8\"\r\n<\/pre>\n<p>OS \u306e\u74b0\u5883\u3092\u78ba\u8a8d<\/p>\n<pre># env | grep LANG\r\nLANG=en_US.UTF-8\r\nLANGUAGE=en_US:en\r\n#\r\n# locale\r\nLANG=en_US.UTF-8\r\nLANGUAGE=en_US:en\r\nLC_CTYPE=\"en_US.UTF-8\"\r\nLC_NUMERIC=\"en_US.UTF-8\"\r\nLC_TIME=\"en_US.UTF-8\"\r\nLC_COLLATE=\"en_US.UTF-8\"\r\nLC_MONETARY=\"en_US.UTF-8\"\r\nLC_MESSAGES=\"en_US.UTF-8\"\r\nLC_PAPER=\"en_US.UTF-8\"\r\nLC_NAME=\"en_US.UTF-8\"\r\nLC_ADDRESS=\"en_US.UTF-8\"\r\nLC_TELEPHONE=\"en_US.UTF-8\"\r\nLC_MEASUREMENT=\"en_US.UTF-8\"\r\nLC_IDENTIFICATION=\"en_US.UTF-8\"\r\nLC_ALL=\r\n#\r\n# timedatectl\r\n      Local time: Sat 2021-10-09 18:04:42 JST\r\n  Universal time: Sat 2021-10-09 09:04:42 UTC\r\n        RTC time: Sat 2021-10-09 09:04:42\r\n       Time zone: Asia\/Tokyo (JST, +0900)\r\n Network time on: yes\r\nNTP synchronized: yes\r\n RTC in local TZ: no\r\n#\r\n<\/pre>\n<p>OS \u306e default Locale \u3092 ja_JP.UTF-8 \u3078\u5909\u66f4<\/p>\n<pre># dpkg-reconfigure locales\r\nGenerating locales (this might take a while)...\r\n  en_US.UTF-8... done\r\n  ja_JP.UTF-8... done\r\nGeneration complete.\r\n*** update-locale: Warning: LANGUAGE (\"en_US:en\") is not compatible with LANG (ja_JP.UTF-8). Disabling it.\r\n#\r\n<\/pre>\n<p>Web reload<\/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 (9.13) \u306b OpenLDAP \u3068 FusionDirectory \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002 Reference Debian 9 ( Stret [&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-1152","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\/1152","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=1152"}],"version-history":[{"count":8,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1152\/revisions"}],"predecessor-version":[{"id":1178,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/1152\/revisions\/1178"}],"wp:attachment":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}