{"id":543,"date":"2018-04-11T17:25:47","date_gmt":"2018-04-11T17:25:47","guid":{"rendered":"http:\/\/shijuvarghese.com\/?p=543"},"modified":"2018-04-11T17:28:10","modified_gmt":"2018-04-11T17:28:10","slug":"adding-a-centos-7-host-to-ad-using-realmd","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=543","title":{"rendered":"Adding a CentOS 7 host to AD using realmd"},"content":{"rendered":"<p>A CentOS host can be added to an AD for suthentication using samba-winbind or realmd packages.<\/p>\n<p>In this tutorial we will learn the simple way of using AD aunthentication using realmd packages using the below steps:<\/p>\n<p>Install the required packages:<br \/>\n<em><strong>[root@gw-17 ~]# yum install realmd oddjob oddjob-mkhomedir sssd samba-common-tools -y<\/strong><\/em><\/p>\n<p>Explore the settings of domain, for example &#8220;gw.local&#8221;<br \/>\n<em><strong>[root@gw-17 ~]# realm discover gw.local<\/strong><\/em><\/p>\n<p>Join the Active Directory, which will also install and configure the required packges sssd, pam, nsswitch.conf, etc. The AD domain administrator&#8217;s password will be required.<br \/>\n<em><strong>[root@gw-17 ~]# realm join gw.local<\/strong><\/em><\/p>\n<p>Enable Active Directory login<br \/>\n<em><strong>[root@gw-17 ~]# realm permit &#8211;realm gw.local &#8211;all<\/strong><\/em><\/p>\n<p>Test<br \/>\n====<br \/>\nTry to SSH to the linux host using a user account for example &#8220;user1&#8221;. The username should be entered in SSH login prompt as &#8220;<strong>user1@gw.local<\/strong>&#8221; and the AD password for user1<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>A CentOS host can be added to an AD for suthentication using samba-winbind or realmd packages. In this tutorial we will learn the simple way <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=543\" title=\"Adding a CentOS 7 host to AD using realmd\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":260,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,14],"tags":[],"class_list":["post-543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-security"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=543"}],"version-history":[{"count":4,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/543\/revisions"}],"predecessor-version":[{"id":547,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/543\/revisions\/547"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/260"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=543"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}