{"id":12845,"date":"2019-12-01T00:13:49","date_gmt":"2019-11-30T15:13:49","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=12845"},"modified":"2022-08-26T05:04:29","modified_gmt":"2022-08-25T20:04:29","slug":"freebsd-13-0-current-r348210-samba4-8-12-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","status":"publish","type":"post","link":"https:\/\/wp.study3.biz\/?p=12845","title":{"rendered":"FreeBSD 13.0-CURRENT r348210 Samba4.8.12 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\/06\/13-300x169.jpg\" alt=\"\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-19359\" \/><br \/>\nroot@freebsd:~ # kinit administrator<br \/>\nadministrator@TEST.JP&#8217;s Password:<br \/>\nroot@freebsd:~ # net ads join -U administrator<br \/>\nEnter administrator&#8217;s password:<br \/>\nUsing short domain name &#8212; TEST<br \/>\nJoined &#8216;FREEBSD&#8217; to dns domain &#8216;test.jp&#8217;<br \/>\nNo DNS domain configured for freebsd. Unable to perform DNS Update.<br \/>\nDNS update failed: NT_STATUS_INVALID_PARAMETER<br \/>\nroot@freebsd:~ # service samba_server start<br \/>\nPerforming sanity check on Samba configuration: OK<br \/>\nStarting nmbd.<br \/>\nStarting smbd.<br \/>\nStarting winbindd.<br \/>\nroot@freebsd:~ # wbinfo -n chibi<br \/>\nS-1-5-21-240115641-1379185000-2946864531-1104 SID_USER (1)<br \/>\nroot@freebsd:~ # wbinfo -u<br \/>\nTEST\\administrator<br \/>\nTEST\\guest<br \/>\nTEST\\krbtgt<br \/>\nTEST\\chibi<br \/>\nroot@freebsd:~ # klist<br \/>\nCredentials cache: FILE:\/tmp\/krb5cc_0<br \/>\n        Principal: administrator@TEST.JP<\/p>\n<p>  Issued                Expires               Principal<br \/>\nJun  1 08:34:52 2019  Jun  1 18:34:52 2019  krbtgt\/TEST.JP@TEST.JP<br \/>\nroot@freebsd:~ # net ads info<br \/>\nLDAP server: 192.168.1.14<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: Sat, 01 Jun 2019 08:37:47 JST<br \/>\nKDC server: 192.168.1.14<br \/>\nServer time offset: -13<br \/>\nLast machine account password change: Sat, 01 Jun 2019 08:36:07 JST<br \/>\nroot@freebsd:~ # host -4 dc<br \/>\ndc.test.jp has address 192.168.1.14<br \/>\ndc.test.jp has address 192.168.1.20<br \/>\ndc.test.jp has IPv6 address 2400:4052:46e0:b700:b876:6833:607d:3482<br \/>\ndc.test.jp has IPv6 address 2400:4052:46e0:b700:c574:a8df:a559:64f5<br \/>\nroot@freebsd:~ # host -4 dc1<br \/>\ndc1.test.jp has address 192.168.1.19<br \/>\ndc1.test.jp has IPv6 address 2400:4052:46e0:b700:d055:b705:9347:24ad<br \/>\nroot@freebsd:~ # host -4 dc2<br \/>\ndc2.test.jp has address 192.168.1.149<br \/>\ndc2.test.jp has IPv6 address 2400:4052:46e0:b700:2154:9eb9:8076:664b<br \/>\nroot@freebsd:~ # 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@freebsd:~ # 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@freebsd:~ # host -t A test.jp<br \/>\ntest.jp has address 192.168.1.14<br \/>\ntest.jp has address 192.168.1.19<br \/>\ntest.jp has address 192.168.1.20<br \/>\ntest.jp has address 192.168.1.149<br \/>\nroot@freebsd:~ # uname -a<br \/>\nFreeBSD freebsd 13.0-CURRENT FreeBSD 13.0-CURRENT r348210 GENERIC  amd64<br \/>\nroot@freebsd:~ # samba -V<br \/>\nVersion 4.8.12<br \/>\nroot@freebsd:~ # smbclient \/\/192.168.1.14\/netlogon -Uadministrator<br \/>\n<a href=\"http:\/\/wp.study3.biz\/wp-content\/uploads\/2019\/06\/5a9a4101b579b05eec44a408507d37c9.txt\">FreeBSD 13.0-CURRENT r348210 Samba4.8.12 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>root@freebsd:~ # kinit administrator administrator@TEST.JP&#8217;s Password: root@freebsd:~ # net ads join -U  &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=12845\">\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":[8,9,10],"tags":[],"class_list":["post-12845","post","type-post","status-publish","format-standard","hentry","category-freebsd","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\/12845","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=12845"}],"version-history":[{"count":2,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12845\/revisions"}],"predecessor-version":[{"id":12850,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12845\/revisions\/12850"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}