{"id":12094,"date":"2020-01-14T04:40:09","date_gmt":"2020-01-13T19:40:09","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=12094"},"modified":"2022-08-10T08:10:01","modified_gmt":"2022-08-09T23:10:01","slug":"debian10-0-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=12094","title":{"rendered":"Debian10.0 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\" src=\"http:\/\/wp.study3.biz\/wp-content\/uploads\/2019\/07\/deb-300x169.jpg\" alt=\"\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-20016\" \/><br \/>\nroot@debian:~# cat \/etc\/debian_version<br \/>\n10.0<br \/>\nroot@debian:~# cat \/etc\/os-release<br \/>\nPRETTY_NAME=&#8221;Debian GNU\/Linux 10 (buster)&#8221;<br \/>\nNAME=&#8221;Debian GNU\/Linux&#8221;<br \/>\nVERSION_ID=&#8221;10&#8243;<br \/>\nVERSION=&#8221;10 (buster)&#8221;<br \/>\nVERSION_CODENAME=buster<br \/>\nID=debian<br \/>\nHOME_URL=&#8221;https:\/\/www.debian.org\/&#8221;<br \/>\nSUPPORT_URL=&#8221;https:\/\/www.debian.org\/support&#8221;<br \/>\nBUG_REPORT_URL=&#8221;https:\/\/bugs.debian.org\/&#8221;<br \/>\nroot@debian:~# samba -V<br \/>\nVersion 4.9.5-Debian<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\\guest<br \/>\nTEST\\administrator<br \/>\nTEST\\krbtgt<br \/>\nTEST\\chibi<br \/>\nroot@debian:~# wbinfo -n chibi<br \/>\nS-1-5-21-4283025733-908519724-3295402948-1103 SID_USER (1)<br \/>\nroot@debian:~# smbclient -L localhost -U%<\/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.9.5-Debian)<br \/>\nReconnecting with SMB1 for workgroup listing.<\/p>\n<p>        Server               Comment<br \/>\n        &#8212;&#8212;&#8212;            &#8212;&#8212;-<br \/>\n        DC<br \/>\n        DEBIAN               Samba 4.9.5-Debian<\/p>\n<p>        Workgroup            Master<br \/>\n        &#8212;&#8212;&#8212;            &#8212;&#8212;-<br \/>\n        TEST                 DC<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.58<br \/>\ndc.test.jp has IPv6 address 2400:4052:46e0:b700:b03b:d3b7:8519:54be<br \/>\ndc.test.jp has IPv6 address 2400:4052:46e0:b700:cc6c:3df7:45e4:e985<br \/>\nroot@debian:~# host -4 dc1<br \/>\ndc1.test.jp has address 192.168.1.60<br \/>\ndc1.test.jp has IPv6 address 2400:4052:46e0:b700:9d2:83b4:4031:14cf<br \/>\nroot@debian:~# host -4 dc2<br \/>\ndc2.test.jp has address 192.168.1.61<br \/>\ndc2.test.jp has IPv6 address 2400:4052:46e0:b700:f0b7:1338:1a03:19fd<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.60<br \/>\ntest.jp has address 192.168.1.58<br \/>\ntest.jp has address 192.168.1.61<br \/>\nroot@debian:~# smbclient -L localhost -U%<br \/>\n<a href=\"http:\/\/wp.study3.biz\/wp-content\/uploads\/2019\/07\/72d97ce916ffbeb6c1249d2cb205e938.txt\">Debian10.0 Samba4.9.5 Windows Server 2019 Datacenter Active Directory Domain \u306e\u30e1\u30f3\u30d0\u30fc\u306b\u53c2\u52a0<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>root@debian:~# cat \/etc\/debian_version 10.0 root@debian:~# cat \/etc\/os-release PRETTY_NAME=&#8221;Debian GNU\/L &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=12094\">\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-12094","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\/12094","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=12094"}],"version-history":[{"count":3,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12094\/revisions"}],"predecessor-version":[{"id":12100,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12094\/revisions\/12100"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}