{"id":1676,"date":"2020-05-26T05:17:21","date_gmt":"2020-05-25T20:17:21","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=1676"},"modified":"2020-05-26T05:18:23","modified_gmt":"2020-05-25T20:18:23","slug":"debian9-1-samba4-5-16-windows-server-2016-datacenter-active-directory-domain%e3%81%ae%e3%81%ae%e3%83%a1%e3%83%b3%e3%83%90%e3%83%bc%e3%81%ab%e5%8f%82%e5%8a%a0%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/wp.study3.biz\/?p=1676","title":{"rendered":"Debian9.1 Samba4.5.16 Windows Server 2016 Datacenter Active Directory Domain\u306e\u306e\u30e1\u30f3\u30d0\u30fc\u306b\u53c2\u52a0\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/wp.study3.biz\/wp-content\/uploads\/2020\/04\/2016-1.jpg\" alt=\"\" width=\"1024\" height=\"522\" class=\"alignnone size-full wp-image-1683\" \/><br \/>\nroot@debian:~# kinit administrator<br \/>\nPassword for administrator@TEST.JP:<br \/>\nroot@debian:~# net ads join -U administrator<br \/>\nEnter administrator&#8217;s password:<br \/>\nUsing short domain name &#8212; TEST<br \/>\nJoined &#8216;DEBIAN&#8217; to dns domain &#8216;test.jp&#8217;<br \/>\nNo DNS domain configured for debian. Unable to perform DNS Update.<br \/>\nDNS update failed: NT_STATUS_INVALID_PARAMETER<br \/>\nroot@debian:~# systemctl restart winbind<br \/>\nroot@debian:~# wbinfo -u<br \/>\nTEST\\administrator<br \/>\nTEST\\guest<br \/>\nTEST\\defaultaccount<br \/>\nTEST\\krbtgt<br \/>\nTEST\\chibi<br \/>\nroot@debian:~# wbinfo -n chibi<br \/>\nS-1-5-21-3333442807-1512863489-1031104607-1105 SID_USER (1)<br \/>\nroot@debian:~# net ads info<br \/>\nLDAP server: 192.168.1.37<br \/>\nLDAP server name: dc.test.jp<br \/>\nRealm: TEST.JP<br \/>\nBind Path: dc=TEST,dc=JP<br \/>\nLDAP port: 389<br \/>\nServer time: \u706b, 21  4\u6708 2020 11:52:04 JST<br \/>\nKDC server: 192.168.1.37<br \/>\nServer time offset: 0<br \/>\nLast machine account password change: \u706b, 21  4\u6708 2020 11:51:23 JST<br \/>\nroot@debian:~# host -4 dc<br \/>\ndc.test.jp has address 192.168.1.37<br \/>\nroot@debian:~# host -4 dc1<br \/>\ndc1.test.jp has address 192.168.1.38<br \/>\nroot@debian:~# host -t SRV _ldap._tcp.test.jp<br \/>\n_ldap._tcp.test.jp has SRV record 0 100 389 dc.test.jp.<br \/>\n_ldap._tcp.test.jp has SRV record 0 100 389 dc1.test.jp.<br \/>\nroot@debian:~# host -t SRV _kerberos._udp.test.jp<br \/>\n_kerberos._udp.test.jp has SRV record 0 100 88 dc1.test.jp.<br \/>\n_kerberos._udp.test.jp has SRV record 0 100 88 dc.test.jp.<br \/>\nroot@debian:~# host -t A test.jp<br \/>\ntest.jp has address 13.113.45.174<br \/>\nroot@debian:~# host -t A dc.test.jp<br \/>\ndc.test.jp has address 192.168.1.37<br \/>\nroot@debian:~# host -t A dc1.test.jp<br \/>\ndc1.test.jp has address 192.168.1.38<br \/>\nroot@debian:~# smbclient -L localhost -U%<br \/>\nDomain=[TEST] OS=[Windows 6.1] Server=[Samba 4.5.16-Debian]<\/p>\n<p>        Sharename       Type      Comment<br \/>\n        &#8212;&#8212;&#8212;       &#8212;-      &#8212;&#8212;-<br \/>\n        netlogon        Disk<br \/>\n        sysvol          Disk<br \/>\n        print$          Disk      Printer Drivers<br \/>\n        IPC$            IPC       IPC Service (Samba 4.5.16-Debian)<br \/>\nDomain=[TEST] OS=[Windows 6.1] Server=[Samba 4.5.16-Debian]<\/p>\n<p>        Server               Comment<br \/>\n        &#8212;&#8212;&#8212;            &#8212;&#8212;-<br \/>\n        DEBIAN               Samba 4.5.16-Debian<\/p>\n<p>        Workgroup            Master<br \/>\n        &#8212;&#8212;&#8212;            &#8212;&#8212;-<br \/>\n        TEST<br \/>\nroot@debian:~# smbclient \/\/192.168.1.37\/netlogon -Uadministrator<br \/>\n<a href=\"https:\/\/wp.study3.biz\/wp-content\/uploads\/2020\/04\/9ee24dd9c7e5f5afc4815392147e16d9.txt\">Debian9.1 Samba4.5.16 Windows Server 2016 Datacenter Active Directory Domain\u306e\u306e\u30e1\u30f3\u30d0\u30fc\u306b\u53c2\u52a0\u3057\u3066\u307f\u305f<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>root@debian:~# kinit administrator Password for administrator@TEST.JP: root@debian:~# net ads join -U administ &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=1676\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13,9,10],"tags":[],"class_list":["post-1676","post","type-post","status-publish","format-standard","hentry","category-debian","category-samba4","category-windows"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/1676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1676"}],"version-history":[{"count":2,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/1676\/revisions"}],"predecessor-version":[{"id":1685,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/1676\/revisions\/1685"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}