{"id":1775,"date":"2019-10-16T15:54:18","date_gmt":"2019-10-16T06:54:18","guid":{"rendered":"https:\/\/knowhow.hirohiro716.com\/?p=1775"},"modified":"2022-05-03T13:44:24","modified_gmt":"2022-05-03T04:44:24","slug":"centos7%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=1775","title":{"rendered":"CentOS7\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 \u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u304c1GB\u3060\u3068\u5931\u6557\u3059\u308b\u306e\u30672GB\u7a0b\u5ea6\u306f\u5fc5\u8981\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>\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# yum 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<\/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 1em;\">\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\u3002\n<\/p>\n<p>\u30bb\u30ab\u30f3\u30c0\u30ea\u306e\u30db\u30b9\u30c8\u540d\u3092FQDN\u306b\u5909\u66f4\u3059\u308b\u3002<br \/>\n\u203bFQDN\u304c192.168.0.11\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 ipa2.local.example.com\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# yum 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>\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<br \/>\n\u203b\u30d7\u30e9\u30a4\u30de\u30ea\u304b\u3089CA\u8a2d\u5b9a\u3092\u30b3\u30d4\u30fc\u3059\u308b\u305f\u3081\u300c&#8211;setup-ca\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u6307\u5b9a<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-ca --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<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u63d0\u6761\u4ef6 \u30fb \u30e1\u30a4\u30f3\u30e1\u30e2\u30ea\u304c1GB\u3060\u3068\u5931\u6557\u3059\u308b\u306e\u30672GB\u7a0b\u5ea6\u306f\u5fc5\u8981 \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\u30de\u30ea\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a FQDN\u3067\u30db\u30b9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,27],"tags":[],"class_list":["post-1775","post","type-post","status-publish","format-standard","hentry","category-centos","category-freeipa"],"views":2087,"_links":{"self":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1775","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=1775"}],"version-history":[{"count":5,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1775\/revisions"}],"predecessor-version":[{"id":2119,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1775\/revisions\/2119"}],"wp:attachment":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}