{"id":12828,"date":"2019-12-02T01:10:29","date_gmt":"2019-12-01T16:10:29","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=12828"},"modified":"2022-08-26T04:40:48","modified_gmt":"2022-08-25T19:40:48","slug":"freebsd-13-0-current-r348210-samba4-8-12-active-directory-domain-controller%e3%81%ae%e6%a7%8b%e7%af%89%e3%81%a8%e5%8b%95%e4%bd%9c%e7%a2%ba%e8%aa%8d","status":"publish","type":"post","link":"https:\/\/wp.study3.biz\/?p=12828","title":{"rendered":"FreeBSD 13.0-CURRENT r348210  Samba4.8.12 Active Directory Domain Controller\u306e\u69cb\u7bc9\u3068\u52d5\u4f5c\u78ba\u8a8d"},"content":{"rendered":"<p>root@freebsd:~ # mount -o acls \/<br \/>\nroot@freebsd:~ # samba-tool domain provision<br \/>\nRealm: TEST.JP<br \/>\n Domain [TEST]:<br \/>\n Server Role (dc, member, standalone) [dc]:<br \/>\n DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]:<br \/>\n DNS forwarder IP address (write &#8216;none&#8217; to disable forwarding) [192.168.1.8]:<br \/>\nAdministrator password:<br \/>\nRetype password:<br \/>\nLooking up IPv4 addresses<br \/>\nLooking up IPv6 addresses<br \/>\nNo IPv6 address will be assigned<br \/>\nSetting up share.ldb<br \/>\nSetting up secrets.ldb<br \/>\nSetting up the registry<br \/>\nSetting up the privileges database<br \/>\nSetting up idmap db<br \/>\nSetting up SAM db<br \/>\nSetting up sam.ldb partitions and settings<br \/>\nSetting up sam.ldb rootDSE<br \/>\nPre-loading the Samba 4 and AD schema<br \/>\nUnable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs<br \/>\n<a href=\"http:\/\/wp.study3.biz\/wp-content\/uploads\/2019\/06\/aa28ca19b5b746f806cbad62fbd4f202.txt\">FreeBSD 13.0-CURRENT r348210 Samba4.8.12 Active Directory Domain Controller\u306e\u69cb\u7bc9<\/a><br \/>\nroot@freebsd:~ # kinit administrator<br \/>\nadministrator@TEST.JP&#8217;s Password:<br \/>\nroot@freebsd:~ # samba-tool user add chibi<br \/>\nNote: samba-tool user add is deprecated.  Please use samba-tool user create for the same function.<br \/>\nNew Password:<br \/>\nRetype Password:<br \/>\nUser &#8216;chibi&#8217; created successfully<br \/>\nroot@freebsd:~ # wbinfo -u<br \/>\nTEST\\administrator<br \/>\nTEST\\guest<br \/>\nTEST\\krbtgt<br \/>\nTEST\\chibi<br \/>\nroot@freebsd:~ # wbinfo -n chibi<br \/>\nS-1-5-21-3683702346-2664945195-491150968-1103 SID_USER (1)<br \/>\nroot@freebsd:~ # net ads info<br \/>\nLDAP server: 192.168.1.8<br \/>\nLDAP server name: freebsd.test.jp<br \/>\nRealm: TEST.JP<br \/>\nBind Path: dc=TEST,dc=JP<br \/>\nLDAP port: 389<br \/>\nServer time: Sun, 02 Jun 2019 12:23:40 JST<br \/>\nKDC server: 192.168.1.8<br \/>\nServer time offset: 0<br \/>\nLast machine account password change: Sun, 02 Jun 2019 12:20:15 JST<br \/>\nroot@freebsd:~ # host -4 freebsd<br \/>\nfreebsd.test.jp has address 192.168.1.8<br \/>\nroot@freebsd:~ # host -t SRV _ldap._tcp.test.jp<br \/>\n_ldap._tcp.test.jp has SRV record 0 100 389 freebsd.test.jp.<br \/>\nroot@freebsd:~ # host -t SRV _kerberos._udp.test.jp<br \/>\n_kerberos._udp.test.jp has SRV record 0 100 88 freebsd.test.jp.<br \/>\nroot@freebsd:~ # host -t A freebsd.test.jp.<br \/>\nfreebsd.test.jp has address 192.168.1.8<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 -L localhost -U%<br \/>\n<a href=\"http:\/\/wp.study3.biz\/wp-content\/uploads\/2019\/06\/1ec881117251f5c4d684f3abb54d5b2c.txt\">FreeBSD 13.0-CURRENT r348210 Samba4.8.12 Active Directory Domain Controller\u306e\u52d5\u4f5c\u78ba\u8a8d<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>root@freebsd:~ # mount -o acls \/ root@freebsd:~ # samba-tool domain provision Realm: TEST.JP Domain [TEST]: Se &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=12828\">\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],"tags":[],"class_list":["post-12828","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-samba4"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12828","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=12828"}],"version-history":[{"count":2,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12828\/revisions"}],"predecessor-version":[{"id":12833,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12828\/revisions\/12833"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}