{"id":215,"date":"2020-02-03T02:32:25","date_gmt":"2020-02-02T17:32:25","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=215"},"modified":"2020-02-03T02:33:14","modified_gmt":"2020-02-02T17:33:14","slug":"debian10-2-samba4-9-5-windows-server-2019-datacenter-active-directory-domain%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=215","title":{"rendered":"Debian10.2 Samba4.9.5 Windows Server 2019  Datacenter Active Directory Domain\u306e\u30e1\u30f3\u30d0\u30fc \u306b\u53c2\u52a0\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-222\" src=\"https:\/\/wp.study3.biz\/wp-content\/uploads\/2020\/01\/debian10.2.jpg\" alt=\"\" width=\"1920\" height=\"1080\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>root@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\\krbtgt<br \/>\nTEST\\chibi<br \/>\nroot@debian:~# wbinfo -n chibi<br \/>\nS-1-5-21-3288142828-1890802880-3761831349-1103 SID_USER (1)<br \/>\nroot@debian:~# net ads info<br \/>\nLDAP server: 192.168.1.7<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: \u6c34, 29 1\u6708 2020 16:13:27 JST<br \/>\nKDC server: 192.168.1.7<br \/>\nServer time offset: -5<br \/>\nLast machine account password change: \u6c34, 29 1\u6708 2020 16:12:39 JST<br \/>\nroot@debian:~# host -4 dc<br \/>\ndc.test.jp has address 192.168.1.10<br \/>\ndc.test.jp has address 192.168.1.7<br \/>\ndc.test.jp has IPv6 address 2400:4052:46e0:b700:4f:d564:2171:d644<br \/>\ndc.test.jp has IPv6 address 2400:4052:46e0:b700:b965:55ce:a6fa:cbe<br \/>\nroot@debian:~# host -4 dc1<br \/>\ndc1.test.jp has address 192.168.1.11<br \/>\ndc1.test.jp has IPv6 address 2400:4052:46e0:b700:85f5:d25e:c529:278a<br \/>\nroot@debian:~# host -4 dc2<br \/>\ndc2.test.jp has address 192.168.1.12<br \/>\ndc2.test.jp has IPv6 address 2400:4052:46e0:b700:309e:ebe1:748c:e149<br \/>\nroot@debian:~# host -t SRV _ldap._tcp.test.jp<br \/>\n_ldap._tcp.test.jp has SRV record 0 100 389 dc2.test.jp.<br \/>\n_ldap._tcp.test.jp has SRV record 0 100 389 dc1.test.jp.<br \/>\n_ldap._tcp.test.jp has SRV record 0 100 389 dc.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 dc2.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 192.168.1.10<br \/>\ntest.jp has address 192.168.1.7<br \/>\ntest.jp has address 192.168.1.12<br \/>\ntest.jp has address 192.168.1.11<br \/>\nroot@debian:~# smbclient -L localhost -U%<\/p>\n<p>Sharename Type Comment<br \/>\n&#8212;&#8212;&#8212; &#8212;- &#8212;&#8212;-<br \/>\nnetlogon Disk<br \/>\nsysvol Disk<br \/>\nprint$ Disk Printer Drivers<br \/>\nIPC$ IPC IPC Service (Samba 4.9.5-Debian)<br \/>\nReconnecting with SMB1 for workgroup listing.<\/p>\n<p>Server Comment<br \/>\n&#8212;&#8212;&#8212; &#8212;&#8212;-<\/p>\n<p>Workgroup Master<br \/>\n&#8212;&#8212;&#8212; &#8212;&#8212;-<br \/>\nTEST DC<br \/>\nWORKGROUP DEBIAN<br \/>\nroot@debian:~# smbclient -L localhost -U%<\/p>\n<p><a href=\"https:\/\/wp.study3.biz\/wp-content\/uploads\/2020\/01\/Debian10.2-Samba4.9.5-Windows-Server-2019-Datacenter-Active-Directory-Domain\u306e\u30e1\u30f3\u30d0\u30fc-\u306b\u53c2\u52a0\u3057\u3066\u307f\u305f.txt\">Debian10.2 Samba4.9.5 Windows Server 2019 Datacenter Active Directory Domain\u306e\u30e1\u30f3\u30d0\u30fc \u306b\u53c2\u52a0\u3057\u3066\u307f\u305f<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; root@debian:~# kinit administrator Password for administrator@TEST.JP: root@debian:~# net ads join -U a &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=215\">\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-215","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\/215","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=215"}],"version-history":[{"count":2,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":224,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/215\/revisions\/224"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}