{"id":866,"date":"2014-12-18T17:05:38","date_gmt":"2014-12-18T20:05:38","guid":{"rendered":"http:\/\/blog.abratel.com.br\/?p=866"},"modified":"2014-12-18T17:05:38","modified_gmt":"2014-12-18T20:05:38","slug":"ingressar-centos-7-no-dominio","status":"publish","type":"post","link":"https:\/\/blog.abratel.com.br\/?p=866","title":{"rendered":"Ingressar CentOS 7 no dom\u00ednio"},"content":{"rendered":"<p>\nJoin in Windows Active Directory Domain with Samba Winbind.<br \/>\nThis tutorial needs Windows Active Directory Domain Service in your LAN.<br \/>\nThis example shows to configure on the environment below.<br \/>\nDomain Server : Windows Server 2008 R2<br \/>\nDomain Name : E-FD3S0<br \/>\nRealm : E-FD3S.SERVER.WORLD<br \/>\nHostname : e-fd3s.server.world<\/p>\n<p>[1]\tInstall Winbind.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n[root@lan ~]# yum -y install samba-winbind samba-winbind-clients pam_krb5\r\n<\/pre>\n<p>[2]\tConfigure Winbind.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# replace ifcfg-xxx to your own environment\r\n[root@lan ~]# vi \/etc\/sysconfig\/network-scripts\/ifcfg-eno16777736\r\n# change to the DNS to AD's one\r\nDNS1=10.0.0.150\r\n[root@lan ~]# systemctl restart network\r\n\r\nDISABLED SELinux in  \/etc\/sysconfig\/selinux\r\n<\/pre>\n<p>[3]\tJoin in Windows Active Directory Domain.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# join in Active Directory ( net ads join -U [AD's admin user])\r\n\r\n[root@lan ~]# net ads join -U Administrator \r\nEnter Serverworld's password:\r\nUsing short domain name -- E-FD3S0\r\nJoined 'LAN' to dns domain 'e-fd3s.server.world'\r\nDNS Update for lan.server.world failed: ERROR_DNS_UPDATE_FAILED\r\nDNS update failed: NT_STATUS_UNSUCCESSFUL\r\n\r\n[root@lan ~]# systemctl start winbind \r\n[root@lan ~]# systemctl enable winbind\r\n# show domain info\r\n[root@lan ~]# net ads info \r\nLDAP server: 10.0.0.150\r\nLDAP server name: e-fd3s.e-fd3s.server.world\r\nRealm: E-FD3S.SERVER.WORLD\r\nBind Path: dc=E-FD3S,dc=SERVER,dc=WORLD\r\nLDAP port: 389\r\nServer time: Sun, 07 Sep 2014 21:31:27 JST\r\nKDC server: 10.0.0.150\r\nServer time offset: -3\r\n\r\n# show AD users info\r\n[root@lan ~]# wbinfo -u \r\nadministrator\r\nguest\r\nserverworld\r\nkrbtgt\r\n\r\n# show AD groups info\r\n[root@lan ~]# wbinfo -g \r\ndomain computers\r\ndomain controllers\r\nschema admins\r\nenterprise admins\r\ncert publishers\r\ndomain admins\r\ndomain users\r\ndomain guests\r\ngroup policy creator owners\r\nras and ias servers\r\nallowed rodc password replication group\r\ndenied rodc password replication group\r\nread-only domain controllers\r\nenterprise read-only domain controllers\r\ndnsadmins\r\ndnsupdateproxy\r\n\r\n# switch to an AD user\r\n[root@lan ~]# su - serverworld \r\nCreating directory '\/home\/serverworld'.\r\n[serverworld@lan ~]$\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Join in Windows Active Directory Domain with Samba Winbind. This tutorial needs Windows Active Directory Domain Service in your LAN. This example shows to configure on the environment below. Domain Server : Windows Server 2008 R2 Domain Name : E-FD3S0 Realm : E-FD3S.SERVER.WORLD Hostname :&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/866"}],"collection":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=866"}],"version-history":[{"count":1,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/866\/revisions"}],"predecessor-version":[{"id":867,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/866\/revisions\/867"}],"wp:attachment":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}