{"id":12256,"date":"2019-12-28T04:07:16","date_gmt":"2019-12-27T19:07:16","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=12256"},"modified":"2022-08-10T11:22:00","modified_gmt":"2022-08-10T02:22:00","slug":"freebsd-11-3-rc2-0-r349252-samba4-6-16-windows-server-2016-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=12256","title":{"rendered":"FreeBSD 11.3-RC2 #0 r349252 Samba4.6.16 Windows Server 2016 Datacenter Active Directory Domain\u306e\u30e1\u30f3\u30d0\u30fc\u306b\u53c2\u52a0\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p>root@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 -u<br \/>\nTEST\\administrator<br \/>\nTEST\\guest<br \/>\nTEST\\defaultaccount<br \/>\nTEST\\krbtgt<br \/>\nTEST\\chibi<br \/>\nroot@freebsd:~ # kinit administrator<br \/>\nadministrator@TEST.JP&#8217;s Password:<br \/>\nkinit: krb5_get_init_creds: Clock skew too great<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 28 05:35:33 2019  Jun 28 15:35:33 2019  krbtgt\/TEST.JP@TEST.JP<br \/>\nroot@freebsd:~ # net ads info<br \/>\nLDAP server: 192.168.1.41<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: Fri, 28 Jun 2019 05:39:40 JST<br \/>\nKDC server: 192.168.1.41<br \/>\nServer time offset: -2<br \/>\nLast machine account password change: Fri, 28 Jun 2019 05:37:17 JST<br \/>\nroot@freebsd:~ # wbinfo -n chibi<br \/>\nS-1-5-21-3866720368-3273965808-1478398572-1103 SID_USER (1)<br \/>\nroot@freebsd:~ # host -4 dc<br \/>\ndc.test.jp has address 192.168.1.41<br \/>\ndc.test.jp has address 192.168.1.43<br \/>\ndc.test.jp has IPv6 address 2400:4052:46e0:b700:d0cb:a843:f2ba:fd28<br \/>\ndc.test.jp has IPv6 address 2400:4052:46e0:b700:9c17:70c2:f128:4f74<br \/>\nroot@freebsd:~ # host -4 dc1<br \/>\ndc1.test.jp has address 192.168.1.52<br \/>\ndc1.test.jp has IPv6 address 2400:4052:46e0:b700:a555:f9b5:10f3:2a15<br \/>\nroot@freebsd:~ # host -4 dc2<br \/>\ndc2.test.jp has address 192.168.1.32<br \/>\ndc2.test.jp has IPv6 address 2400:4052:46e0:b700:d908:2730:71f3:20c<br \/>\nroot@freebsd:~ # host -t SRV _ldap._tcp.test.jp<br \/>\n_ldap._tcp.test.jp has SRV record 0 100 389 dc.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 dc2.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.32<br \/>\ntest.jp has address 192.168.1.43<br \/>\ntest.jp has address 192.168.1.41<br \/>\ntest.jp has address 192.168.1.52<br \/>\nroot@freebsd:~ # smbclient \/\/192.168.1.41\/netlogon -Uadministrator<br \/>\nEnter TEST\\administrator&#8217;s password:<br \/>\nDomain=[TEST] OS=[Windows Server 2016 Datacenter 14393] Server=[Windows Server 2016 Datacenter 6.3]<br \/>\n<a href=\"http:\/\/wp.study3.biz\/wp-content\/uploads\/2019\/06\/043346c75a4daf312cb85945c5ff8e9e.txt\">FreeBSD 11.3-RC2 #0 r349252 Samba4.6.16 Windows Server 2016 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:~ # net ads join -U administrator Enter administrator&#8217;s password: Using short domain name &#038; &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=12256\">\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-12256","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\/12256","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=12256"}],"version-history":[{"count":2,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12256\/revisions"}],"predecessor-version":[{"id":12260,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12256\/revisions\/12260"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}