{"id":12466,"date":"2019-12-05T02:40:08","date_gmt":"2019-12-04T17:40:08","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=12466"},"modified":"2022-08-10T15:50:57","modified_gmt":"2022-08-10T06:50:57","slug":"fedora29-samba4-9-8-active-directory-domain%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=12466","title":{"rendered":"Fedora29 Samba4.9.8 Active Directory Domain\u306e\u69cb\u7bc9\u3068\u52d5\u4f5c\u78ba\u8a8d"},"content":{"rendered":"<p>[root@f29 ~]# samba-tool domain provision<br \/>\nRealm:  TEST.JP<br \/>\nDomain [TEST]:<br \/>\nServer Role (dc, member, standalone) [dc]:<br \/>\nDNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]:<br \/>\nDNS forwarder IP address (write &#8216;none&#8217; to disable forwarding) [192.168.1.7]:<br \/>\nAdministrator password:<br \/>\nRetype password:<br \/>\nLooking up IPv4 addresses<br \/>\nLooking up IPv6 addresses<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\/d49b149294581de97c3d081226f75908.txt\">Fedora28 Samba4.9.8 Active Directory Domain\u306e\u69cb\u7bc9<\/a><br \/>\n[root@f29 ~]# kinit administrator<br \/>\nPassword for administrator@TEST.JP:<br \/>\n[root@f29 ~]# 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 \/>\n[root@f29 ~]# wbinfo -u<br \/>\nTEST\\administrator<br \/>\nTEST\\guest<br \/>\nTEST\\krbtgt<br \/>\nTEST\\chibi<br \/>\n[root@f29 ~]# wbinfo -n chibi<br \/>\nS-1-5-21-1241336019-1914047146-3476861537-1103 SID_USER (1)<br \/>\n[root@f29 ~]# net ads info<br \/>\nLDAP server: 192.168.1.7<br \/>\nLDAP server name: f29.test.jp<br \/>\nRealm: TEST.JP<br \/>\nBind Path: dc=TEST,dc=JP<br \/>\nLDAP port: 389<br \/>\nServer time: \u6708, 03  6\u6708 2019 17:48:20 JST<br \/>\nKDC server: 192.168.1.7<br \/>\nServer time offset: 0<br \/>\nLast machine account password change: \u6708, 03  6\u6708 2019 17:43:44 JST<br \/>\n[root@f29 ~]# host -4 f29<br \/>\nf29.test.jp has address 192.168.1.7<br \/>\nf29.test.jp has IPv6 address 2400:4052:46e0:b700:98e0:fa65:8f0:f13<br \/>\n[root@f29 ~]# host -t SRV _ldap._tcp.test.jp<br \/>\n_ldap._tcp.test.jp has SRV record 0 100 389 f29.test.jp.<br \/>\n[root@f29 ~]# host -t SRV _kerberos._udp.test.jp<br \/>\n_kerberos._udp.test.jp has SRV record 0 100 88 f29.test.jp.<br \/>\n[root@f29 ~]# host -t A f29.test.jp.<br \/>\nf29.test.jp has address 192.168.1.7<br \/>\n[root@f29 ~]# smbclient -L localhost -U%<br \/>\n<a href=\"http:\/\/wp.study3.biz\/wp-content\/uploads\/2019\/06\/17e04caa8199664d93e8155b4a1b73d6.txt\">Fedora28 Samba4.9.8 Active Directory Domain\u306e\u52d5\u4f5c\u78ba\u8a8d<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[root@f29 ~]# samba-tool domain provision Realm: TEST.JP Domain [TEST]: Server Role (dc, member, standalone) [ &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=12466\">\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":[2,9],"tags":[],"class_list":["post-12466","post","type-post","status-publish","format-standard","hentry","category-fedora","category-samba4"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12466","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=12466"}],"version-history":[{"count":2,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12466\/revisions"}],"predecessor-version":[{"id":12470,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12466\/revisions\/12470"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}