{"id":2032,"date":"2020-06-16T02:36:50","date_gmt":"2020-06-15T17:36:50","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=2032"},"modified":"2020-06-16T02:37:58","modified_gmt":"2020-06-15T17:37:58","slug":"ubuntu-20-04-lts-samba4-6-11-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=2032","title":{"rendered":"Ubuntu 20.04 LTS Samba4.6.11 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=\"https:\/\/wp.study3.biz\/wp-content\/uploads\/2020\/05\/2004-1.jpg\" alt=\"\" width=\"1400\" height=\"1050\" class=\"alignnone size-full wp-image-2040\" \/><br \/>\nPassword for administrator@TEST.JP:<br \/>\nroot@2004:~# net ads join -U administrator<br \/>\nEnter administrator&#8217;s password:<br \/>\nUsing short domain name &#8212; TEST<br \/>\nJoined &#8216;2004&#8217; to dns domain &#8216;test.jp&#8217;<br \/>\nNo DNS domain configured for 2004. Unable to perform DNS Update.<br \/>\nDNS update failed: NT_STATUS_INVALID_PARAMETER<br \/>\nroot@2004:~# systemctl restart winbind<br \/>\nroot@2004:~# wbinfo -u<br \/>\nTEST\\guest<br \/>\nTEST\\krbtgt<br \/>\nTEST\\administrator<br \/>\nTEST\\chibi<br \/>\nroot@2004:~# wbinfo -n chibi<br \/>\nS-1-5-21-3232992735-2720986143-514732836-1104 SID_USER (1)<br \/>\nroot@2004:~# net ads info<br \/>\nLDAP server: 192.168.1.25<br \/>\nLDAP server name: dc1.test.jp<br \/>\nRealm: TEST.JP<br \/>\nBind Path: dc=TEST,dc=JP<br \/>\nLDAP port: 389<br \/>\nServer time: \u6708, 11  5\u6708 2020 15:19:01 JST<br \/>\nKDC server: 192.168.1.25<br \/>\nServer time offset: 1<br \/>\nLast machine account password change: \u6708, 11  5\u6708 2020 15:18:10 JST<br \/>\nroot@2004:~# host -4 dc<br \/>\ndc.test.jp has address 192.168.1.24<br \/>\nroot@2004:~# host -4 dc1<br \/>\ndc1.test.jp has address 192.168.1.25<br \/>\nroot@2004:~# host -4 dc2<br \/>\ndc2.test.jp has address 192.168.1.26<br \/>\nroot@2004:~# 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@2004:~# 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@2004:~# host -t A test.jp<br \/>\ntest.jp has address 192.168.1.25<br \/>\ntest.jp has address 192.168.1.26<br \/>\ntest.jp has address 192.168.1.24<br \/>\nroot@2004:~# cat \/etc\/os-release<br \/>\nNAME=&#8221;Ubuntu&#8221;<br \/>\nVERSION=&#8221;20.04 LTS (Focal Fossa)&#8221;<br \/>\nID=ubuntu<br \/>\nID_LIKE=debian<br \/>\nPRETTY_NAME=&#8221;Ubuntu 20.04 LTS&#8221;<br \/>\nVERSION_ID=&#8221;20.04&#8243;<br \/>\nHOME_URL=&#8221;https:\/\/www.ubuntu.com\/&#8221;<br \/>\nSUPPORT_URL=&#8221;https:\/\/help.ubuntu.com\/&#8221;<br \/>\nBUG_REPORT_URL=&#8221;https:\/\/bugs.launchpad.net\/ubuntu\/&#8221;<br \/>\nPRIVACY_POLICY_URL=&#8221;https:\/\/www.ubuntu.com\/legal\/terms-and-policies\/privacy-policy&#8221;<br \/>\nVERSION_CODENAME=focal<br \/>\nUBUNTU_CODENAME=focal<br \/>\nroot@2004:~# samba -V<br \/>\nVersion 4.11.6-Ubuntu<br \/>\nroot@2004:~# net ads lookup<br \/>\nInformation for Domain Controller: 192.168.1.25<\/p>\n<p>Response Type: LOGON_SAM_LOGON_RESPONSE_EX<br \/>\nGUID: 9f3d8bf8-ac72-42c0-b39a-aa4fd15e44c3<br \/>\nFlags:<br \/>\n        Is a PDC:                                   no<br \/>\n        Is a GC of the forest:                      yes<br \/>\n        Is an LDAP server:                          yes<br \/>\n        Supports DS:                                yes<br \/>\n        Is running a KDC:                           yes<br \/>\n        Is running time services:                   yes<br \/>\n        Is the closest DC:                          yes<br \/>\n        Is writable:                                yes<br \/>\n        Has a hardware clock:                       no<br \/>\n        Is a non-domain NC serviced by LDAP server: no<br \/>\n        Is NT6 DC that has some secrets:            no<br \/>\n        Is NT6 DC that has all secrets:             yes<br \/>\n        Runs Active Directory Web Services:         yes<br \/>\n        Runs on Windows 2012 or later:              yes<br \/>\nForest: test.jp<br \/>\nDomain: test.jp<br \/>\nDomain Controller: dc1.test.jp<br \/>\nPre-Win2k Domain: TEST<br \/>\nPre-Win2k Hostname: DC1<br \/>\nServer Site Name: Default-First-Site-Name<br \/>\nClient Site Name: Default-First-Site-Name<br \/>\nNT Version: 5<br \/>\nLMNT Token: ffff<br \/>\nLM20 Token: ffff<br \/>\nroot@2004:~# dig test.jp<br \/>\n<a href=\"https:\/\/wp.study3.biz\/wp-content\/uploads\/2020\/05\/e1fa5d9719a6de9608dba2413013caf0.txt\">Ubuntu 20.04 LTS Samba4.6.11 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>Password for administrator@TEST.JP: root@2004:~# net ads join -U administrator Enter administrator&#8217;s pas &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=2032\">\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":[9,17,10],"tags":[],"class_list":["post-2032","post","type-post","status-publish","format-standard","hentry","category-samba4","category-ubuntu","category-windows"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/2032","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=2032"}],"version-history":[{"count":2,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/2032\/revisions"}],"predecessor-version":[{"id":2042,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/2032\/revisions\/2042"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}