{"id":825,"date":"2020-03-23T03:58:20","date_gmt":"2020-03-22T18:58:20","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=825"},"modified":"2020-03-23T03:59:14","modified_gmt":"2020-03-22T18:59:14","slug":"fedora-release-32-samba4-12-0rc4-acitive-directory-domein%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=825","title":{"rendered":"Fedora release 32 samba4.12.0rc4 Acitive Directory Domein\u306e\u69cb\u7bc9\u3068\u52d5\u4f5c\u78ba\u8a8d"},"content":{"rendered":"<p>[root@f33 ~]# cat \/etc\/redhat-release<br \/>\nFedora release 33 (Rawhide)<br \/>\n[root@f33 ~]# samba -V<br \/>\nVersion 4.12.0rc4<br \/>\n[root@f33 ~]# rm \/etc\/samba\/smb.conf<br \/>\nrm: \u901a\u5e38\u30d5\u30a1\u30a4\u30eb &#8216;\/etc\/samba\/smb.conf&#8217; \u3092\u524a\u9664\u3057\u307e\u3059\u304b? y<br \/>\n[root@f33 ~]# 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.172]:<br \/>\nAdministrator password:<br \/>\nRetype password:<\/p>\n<p>\u4e2d\u7565<\/p>\n<p>Server Role: active directory domain controller<br \/>\nHostname: f33<br \/>\nNetBIOS Domain: TEST<br \/>\nDNS Domain: test.jp<br \/>\nDOMAIN SID: S-1-5-21-2341956574-1872031460-3995669738<\/p>\n<p><a href=\"https:\/\/wp.study3.biz\/wp-content\/uploads\/2020\/02\/Fedora-release-32-samba4.12.0rc4-Acitive-Directory-Domein\u306e\u69cb\u7bc9-\u3068\u8d77\u52d5.txt\">Fedora release 32 samba4.12.0rc4 Acitive Directory Domein\u306e\u69cb\u7bc9 \u3068\u8d77\u52d5<\/a><\/p>\n<p>[root@f33 ~]# kinit administrator<br \/>\nPassword for administrator@TEST.JP:<br \/>\n[root@f33 ~]# 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@f33 ~]# wbinfo -u<br \/>\nTEST\\administrator<br \/>\nTEST\\guest<br \/>\nTEST\\krbtgt<br \/>\nTEST\\chibi<br \/>\n[root@f33 ~]# wbinfo -n chibi<br \/>\nS-1-5-21-2341956574-1872031460-3995669738-1103 SID_USER (1)<br \/>\n[root@f33 ~]# net ads info<br \/>\nLDAP server: 192.168.1.172<br \/>\nLDAP server name: f33.test.jp<br \/>\nRealm: TEST.JP<br \/>\nBind Path: dc=TEST,dc=JP<br \/>\nLDAP port: 389<br \/>\nServer time: \u571f, 29 2\u6708 2020 06:48:50 JST<br \/>\nKDC server: 192.168.1.172<br \/>\nServer time offset: 0<br \/>\nLast machine account password change: \u571f, 29 2\u6708 2020 06:44:06 JST<br \/>\n[root@f33 ~]# host -4 f33<br \/>\nf33.test.jp has address 192.168.1.172<br \/>\n[root@f33 ~]# host -t SRV _ldap._tcp.test.jp<br \/>\n_ldap._tcp.test.jp has SRV record 0 100 389 f33.test.jp.<br \/>\n[root@f33 ~]# host -t SRV _kerberos._udp.test.jp<br \/>\n_kerberos._udp.test.jp has SRV record 0 100 88 f33.test.jp.<br \/>\n[root@f33 ~]# host -t A f33.test.jp.<br \/>\nf33.test.jp has address 192.168.1.172<br \/>\n[root@f33 ~]# smbclient -L localhost -U%<\/p>\n<p>Sharename Type Comment<br \/>\n&#8212;&#8212;&#8212; &#8212;- &#8212;&#8212;-<br \/>\nsysvol Disk<br \/>\nnetlogon Disk<br \/>\nIPC$ IPC IPC Service (Samba 4.12.0rc4)<br \/>\nSMB1 disabled &#8212; no workgroup available<br \/>\n[root@f33 ~]# smbclient \/\/localhost\/netlogon -Uadministrator<\/p>\n<p><a href=\"https:\/\/wp.study3.biz\/wp-content\/uploads\/2020\/02\/Fedora-release-32-samba4.12.0rc4-Acitive-Directory-Domein\u306e\u52d5\u4f5c\u78ba\u8a8d.txt\">Fedora release 32 samba4.12.0rc4 Acitive Directory Domein\u306e\u52d5\u4f5c\u78ba\u8a8d<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[root@f33 ~]# cat \/etc\/redhat-release Fedora release 33 (Rawhide) [root@f33 ~]# samba -V Version 4.12.0rc4 [ro &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=825\">\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-825","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\/825","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=825"}],"version-history":[{"count":2,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/825\/revisions"}],"predecessor-version":[{"id":831,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/825\/revisions\/831"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}