{"id":1446,"date":"2022-04-09T14:37:10","date_gmt":"2022-04-09T05:37:10","guid":{"rendered":"https:\/\/knowhow.hirohiro716.com\/?p=1446"},"modified":"2022-05-30T12:44:48","modified_gmt":"2022-05-30T03:44:48","slug":"centos8%e3%81%a7%e3%81%aefreeipa%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/weblog.hirohiro716.com\/?p=1446","title":{"rendered":"AlmaLinux8\u3067\u306eFreeIPA\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a"},"content":{"rendered":"<h4>\u524d\u63d0\u6761\u4ef6<\/h4>\n<pre class=\"brush: plain; gutter: false; title: ; notranslate\" title=\"\">\r\n\u30fb AlmaLinux\u306e\u30d0\u30fc\u30b8\u30e7\u30f3: 8.5\r\n\u30fb ipa\u30b5\u30fc\u30d0\u30fc\u306e\u30d0\u30fc\u30b8\u30e7\u30f3: 4.9.6\r\n\u30fb \u30d7\u30e9\u30a4\u30de\u30ea\u306eIP\u30a2\u30c9\u30ec\u30b9\u306f192.168.0.10\r\n\u30fb \u30bb\u30ab\u30f3\u30c0\u30ea\u306eIP\u30a2\u30c9\u30ec\u30b9\u306f192.168.0.11\r\n<\/pre>\n<h4>\u30d7\u30e9\u30a4\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a<\/h4>\n<p>FQDN\u3067\u30db\u30b9\u30c8\u540d\u3092\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\n\u203bFQDN\u304c192.168.0.10\u306b\u540d\u524d\u89e3\u6c7a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304f<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# hostnamectl set-hostname ipa1.local.example.com\r\n<\/pre>\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u691c\u7d22\u3057\u3066\u5fc5\u8981\u305d\u3046\u306a\u3082\u306e\u3092\u7279\u5b9a\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ dnf module list\r\n<\/pre>\n<p>idm\u306eDL1\u306bServer\u3068\u66f8\u3044\u3066\u3042\u3063\u305f\u306e\u3067\u3001\u305d\u308c\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# dnf install @idm:DL1\r\n<\/pre>\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# dnf install ipa-server ipa-server-dns\r\n<\/pre>\n<p>\u5bfe\u8a71\u578b\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u8d77\u52d5\u3059\u308b\u3002<br \/>\n\u203b\u540c\u6642\u306bbind\u3082\u8a2d\u5b9a\u3057\u3066\u3082\u3089\u3046<br \/>\n\u203bDNS\u30d5\u30a9\u30ef\u30fc\u30c0\u30fc\u3082\u8a2d\u5b9a\u3059\u308b<br \/>\n\u203b\u305d\u306e\u307b\u304b\u306f\u5927\u4f53Enter\u3067\u7d9a\u884c\u3057\u305f<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# ipa-server-install\r\n<\/pre>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u4f8b\u5916\u3092\u767b\u9332\u3059\u308b\u3088\u3046\u4fc3\u3055\u308c\u308b\u306e\u3067\u767b\u9332\u3059\u308b\u3002<br \/>\n\u203b\u30b5\u30fc\u30d3\u30b9\u540d\u3067\u8a2d\u5b9a\u3059\u308b\u5834\u5408\u306f\u300cldap\u300d\u3067\u306f\u306a\u304f\u300cfreeipa-ldap\u300d\u306a\u306e\u3067\u6ce8\u610f<br \/>\n\u203bfreeipa-replication\u306f\u30bb\u30ab\u30f3\u30c0\u30ea\u3092\u69cb\u7bc9\u3057\u306a\u3044\u5834\u5408\u306f\u3044\u3089\u306a\u3044<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# firewall-cmd --permanent --add-service={freeipa-ldap,freeipa-ldaps,freeipa-replication,dns,ntp,http,https}\r\n# firewall-cmd --reload\r\n<\/pre>\n<p>\u53c2\u7167\u3059\u308bDNS\u30b5\u30fc\u30d0\u30fc\u3092\u81ea\u8eab\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# nmcli connection modify \u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u540d ipv4.dns 192.168.0.10\r\n# nmcli connection up \u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u540d\r\n<\/pre>\n<p>chrony\u306eserver\/client\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u3002<br \/>\n\u203b\u5909\u66f4\u7b87\u6240\u306e\u307f\u8a18\u8f09<\/p>\n<pre class=\"brush: plain; title: \/etc\/chrony.conf; notranslate\" title=\"\/etc\/chrony.conf\">\r\n# Allow NTP client access from local network.\r\n#allow 192.168.0.0\/16\r\nallow 192.168.0.0\/24\r\n\r\n# Select which information is logged.\r\n#log measurements statistics tracking\r\nserver ntp.nict.jp iburst\r\n<\/pre>\n<p>chronyd\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# systemctl restart chronyd\r\n<\/pre>\n<p>\u521d\u56de\u30ed\u30b0\u30a4\u30f3\u6642\u306b\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u3088\u3046\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# authconfig --enablemkhomedir --update\r\n<\/pre>\n<h4 style=\"margin:3em 0 2em;\">\u30bb\u30ab\u30f3\u30c0\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a<\/h4>\n<p style=\"margin-bottom:2em;\">\n\u30d7\u30e9\u30a4\u30de\u30ea\u306eIdM\u306bWEB\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u30bb\u30ab\u30f3\u30c0\u30ea\u306ehost\u3092\u8ffd\u52a0\u3059\u308b\u3002\n<\/p>\n<p>\u30bb\u30ab\u30f3\u30c0\u30ea\u306e\u30db\u30b9\u30c8\u540d\u3092FQDN\u306b\u5909\u66f4\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# hostnamectl set-hostname ipa2.local.example.com\r\n<\/pre>\n<p>\u53c2\u7167\u3059\u308bDNS\u30b5\u30fc\u30d0\u30fc\u3092\u30d7\u30e9\u30a4\u30de\u30eaIPA\u30b5\u30fc\u30d0\u30fc\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# nmcli connection modify \u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u540d ipv4.dns 192.168.0.10\r\n# nmcli connection up \u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u540d\r\n<\/pre>\n<p>\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# dnf install @idm:DL1\r\n# dnf install ipa-server ipa-server-dns\r\n<\/pre>\n<p>IPA\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# ipa-client-install\r\n<\/pre>\n<p>chrony\u306eserver\/client\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u3002<br \/>\n\u203b\u5909\u66f4\u7b87\u6240\u306e\u307f\u8a18\u8f09<\/p>\n<pre class=\"brush: plain; title: \/etc\/chrony.conf; notranslate\" title=\"\/etc\/chrony.conf\">\r\n# Allow NTP client access from local network.\r\n#allow 192.168.0.0\/16\r\nallow 192.168.0.0\/24\r\n\r\n# Select which information is logged.\r\n#log measurements statistics tracking\r\nserver ntp.nict.jp iburst\r\n<\/pre>\n<p>chronyd\u3092\u518d\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# systemctl restart chronyd\r\n<\/pre>\n<p>\u521d\u56de\u30ed\u30b0\u30a4\u30f3\u6642\u306b\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u3088\u3046\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# authconfig --enablemkhomedir --update\r\n<\/pre>\n<p>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u4f8b\u5916\u3092\u767b\u9332\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# firewall-cmd --permanent --add-service={freeipa-ldap,freeipa-ldaps,freeipa-replication,dns,ntp,http,https}\r\n# firewall-cmd --reload\r\n<\/pre>\n<p>\u30ec\u30d7\u30ea\u30ab\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u884c\u3059\u308b\u3002\u306a\u305c\u304b\u300c&#8211;setup-ca\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u308b\u3068\u5fc5\u305a\u5931\u6557\u3059\u308b\u3002\u307b\u304b\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3(Rocky Linux\u3001Oracle Linux)\u3067\u8a66\u3057\u3066\u307f\u305f\u308a\u3001\u8272\u3005\u306a\u5c0f\u7d30\u5de5\u3057\u3066\u307f\u305f\u3051\u3069\u89e3\u6c7a\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4eca\u56de\u306fCA\u8a2d\u5b9a\u3092\u30d7\u30e9\u30a4\u30de\u30ea\u3060\u3051\u3067\u904b\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<br \/>\n\u203bDNS\u3068\u3057\u3066\u3082\u52d5\u4f5c\u3055\u305b\u308b\u305f\u3081\u300c&#8211;setup-dns\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u6307\u5b9a<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# ipa-replica-install --setup-dns --forwarder &lt;forwarder\u306eIP\u30a2\u30c9\u30ec\u30b91&gt; --forwarder &lt;forwarder\u306eIP\u30a2\u30c9\u30ec\u30b92&gt;\r\n<\/pre>\n<p>\u53c2\u7167\u3059\u308bDNS\u30b5\u30fc\u30d0\u30fc\u3092\u81ea\u8eab\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# nmcli connection modify \u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u540d ipv4.dns 192.168.0.11\r\n# nmcli connection up \u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u540d\r\n<\/pre>\n<h4 style=\"margin:3em 0 1em;\">\u88dc\u8db3<\/h4>\n<p>\u30d7\u30e9\u30a4\u30de\u30ea\u306eCA\u8a2d\u5b9a\u304c\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u304d\u3066\u3044\u306a\u3044\u305f\u3081\u5b9a\u671f\u7684\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u5f97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u6210\u3067\u304d\u308b\u304c\u3001\u4f5c\u6210\u5834\u6240\u306f\u6307\u5b9a\u3067\u304d\u305a\/var\/lib\/ipa\/backup\/\u306b\u300cipa-full-2022-04-09-14-28-16\u300d\u3068\u3044\u3046\u5f62\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u308b\u3002cron\u3067\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u9069\u5b9c\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u305f\u65b9\u304c\u826f\u3044\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# ipa-backup\r\n<\/pre>\n<p>\u5bfe\u3057\u3066\u30ea\u30b9\u30c8\u30a2\u306f\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# ipa-restore \/var\/lib\/ipa\/backup\/ipa-full-2022-04-09-14-28-16\/\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u63d0\u6761\u4ef6 \u30fb AlmaLinux\u306e\u30d0\u30fc\u30b8\u30e7\u30f3: 8.5 \u30fb ipa\u30b5\u30fc\u30d0\u30fc\u306e\u30d0\u30fc\u30b8\u30e7\u30f3: 4.9.6 \u30fb \u30d7\u30e9\u30a4\u30de\u30ea\u306eIP\u30a2\u30c9\u30ec\u30b9\u306f192.168.0.10 \u30fb \u30bb\u30ab\u30f3\u30c0\u30ea\u306eIP\u30a2\u30c9\u30ec\u30b9\u306f192.168.0.11 \u30d7\u30e9\u30a4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,27],"tags":[],"class_list":["post-1446","post","type-post","status-publish","format-standard","hentry","category-almalinux","category-freeipa"],"views":3132,"_links":{"self":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1446"}],"version-history":[{"count":27,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1446\/revisions"}],"predecessor-version":[{"id":2047,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1446\/revisions\/2047"}],"wp:attachment":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}