{"id":12223,"date":"2019-12-31T02:45:06","date_gmt":"2019-12-30T17:45:06","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=12223"},"modified":"2022-08-10T10:49:53","modified_gmt":"2022-08-10T01:49:53","slug":"freebsd-13-0-current-r349251-samba4-7-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=12223","title":{"rendered":"FreeBSD 13.0-CURRENT r349251 Samba4.7.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\/07\/f-13-300x169.jpg\" alt=\"\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-19809\" \/><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 restart<br \/>\nPerforming sanity check on Samba configuration: OK<br \/>\nwinbindd not running? (check \/var\/run\/samba4\/winbindd.pid).<br \/>\nsmbd not running? (check \/var\/run\/samba4\/smbd.pid).<br \/>\nnmbd not running? (check \/var\/run\/samba4\/nmbd.pid).<br \/>\nPerforming sanity check on Samba configuration: OK<br \/>\nStarting nmbd.<br \/>\nStarting smbd.<br \/>\nStarting winbindd.<br \/>\nroot@freebsd:~ # wbinfo -u<br \/>\nTEST\\administrator<br \/>\nTEST\\guest<br \/>\nTEST\\krbtgt<br \/>\nTEST\\chibi<br \/>\nroot@freebsd:~ # net ads info<br \/>\nLDAP server: 192.168.1.10<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: Mon, 01 Jul 2019 17:43:54 JST<br \/>\nKDC server: 192.168.1.10<br \/>\nServer time offset: -3<br \/>\nLast machine account password change: Mon, 01 Jul 2019 17:42:04 JST<br \/>\nroot@freebsd:~ # wbinfo -n administrator<br \/>\nS-1-5-21-4283025733-908519724-3295402948-500 SID_USER (1)<br \/>\nroot@freebsd:~ # host -4 dc<br \/>\ndc.test.jp has address 192.168.1.58<br \/>\ndc.test.jp has address 192.168.1.10<br \/>\ndc.test.jp has IPv6 address 2400:4052:46e0:b700:cc6c:3df7:45e4:e985<br \/>\ndc.test.jp has IPv6 address 2400:4052:46e0:b700:b03b:d3b7:8519:54be<br \/>\nroot@freebsd:~ # 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@freebsd:~ # 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@freebsd:~ # kinit administrator<br \/>\nadministrator@TEST.JP&#8217;s Password:<br \/>\nroot@freebsd:~ # klist<br \/>\nCredentials cache: FILE:\/tmp\/krb5cc_0<br \/>\n        Principal: administrator@TEST.JP<\/p>\n<p>  Issued                Expires               Principal<br \/>\nJul  1 17:44:44 2019  Jul  2 03:44:44 2019  krbtgt\/TEST.JP@TEST.JP<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 dc.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 \/>\nroot@freebsd:~ # host -t A test.jp<br \/>\ntest.jp has address 192.168.1.61<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.10<br \/>\nroot@freebsd:~ # smbclient \/\/192.168.1.10\/netlogon -Uadministrator<br \/>\n<a href=\"http:\/\/wp.study3.biz\/wp-content\/uploads\/2019\/07\/5f60ecda66aa9977bd34ee0f19994e06.txt\">FreeBSD 13.0-CURRENT r349251 Samba4.7.12 Windows Server 2019 Datacenter Active Directory Domain\u306e\u30e1\u30f3\u30d0\u30fc\u306b\u53c2\u52a0<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>root@freebsd:~ # net ads join -U administrator Enter administrator&#8217;s password: Using short domain name &#038; &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=12223\">\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-12223","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\/12223","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=12223"}],"version-history":[{"count":2,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12223\/revisions"}],"predecessor-version":[{"id":12227,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12223\/revisions\/12227"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}