{"id":12196,"date":"2020-01-03T03:14:34","date_gmt":"2020-01-02T18:14:34","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=12196"},"modified":"2022-08-10T10:23:25","modified_gmt":"2022-08-10T01:23:25","slug":"centos7-6-%e3%82%bd%e3%83%bc%e3%82%b9%e3%81%8b%e3%82%89%e3%83%93%e3%83%ab%e3%83%89%e3%81%97%e3%81%9fsamba4-9-11%e3%81%ae%e6%a7%8b%e7%af%89%e3%81%a8%e8%b5%b7%e5%8b%95%e5%8f%8a%e3%81%b3%e5%8b%95","status":"publish","type":"post","link":"https:\/\/wp.study3.biz\/?p=12196","title":{"rendered":"CentOS7.6 \u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3057\u305fSamba4.9.11\u306e\u69cb\u7bc9\u3068\u8d77\u52d5\u53ca\u3073\u52d5\u4f5c\u78ba\u8a8d"},"content":{"rendered":"<p>[root@centos7 ~]# \/usr\/local\/samba\/bin\/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.8]:<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\/07\/95168bd0f80e3ec84101361c0df82d53.txt\">CentOS7.6 \u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3057\u305fSamba4.9.11\u306e\u69cb\u7bc9\u3068\u8d77\u52d5<\/a><br \/>\n[root@centos7 ~]# kinit administrator<br \/>\nPassword for administrator@TEST.JP:<br \/>\nWarning: Your password will expire in 41 days on 2019\u5e7408\u670815\u65e5 07\u664254\u520621\u79d2<br \/>\n[root@centos7 ~]# net ads info<br \/>\nLDAP server: 192.168.1.8<br \/>\nLDAP server name: centos7.test.jp<br \/>\nRealm: TEST.JP<br \/>\nBind Path: dc=TEST,dc=JP<br \/>\nLDAP port: 389<br \/>\nServer time: \u6728, 04  7\u6708 2019 07:56:59 JST<br \/>\nKDC server: 192.168.1.8<br \/>\nServer time offset: 0<br \/>\nLast machine account password change: \u6728, 04  7\u6708 2019 05:55:12 JST<br \/>\n[root@centos7 ~]# host -4 centos7.test.jp<br \/>\ncentos7.test.jp has address 192.168.1.8<br \/>\ncentos7.test.jp has IPv6 address 2400:4052:46e0:b700:a114:b4b3:f7d8:3725<br \/>\n[root@centos7 ~]# \/usr\/local\/samba\/bin\/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@centos7 ~]# wbinfo -u<br \/>\ncould not obtain winbind interface details: WBC_ERR_WINBIND_NOT_AVAILABLE<br \/>\ncould not obtain winbind domain name!<br \/>\nError looking up domain users<br \/>\n[root@centos7 ~]# \/usr\/local\/samba\/bin\/samba-tool user list<br \/>\nchibi<br \/>\nAdministrator<br \/>\nkrbtgt<br \/>\nGuest<br \/>\n[root@centos7 ~]# host -t SRV _ldap._tcp.test.jp<br \/>\n_ldap._tcp.test.jp has SRV record 0 100 389 centos7.test.jp.<br \/>\n[root@centos7 ~]# host -t SRV _kerberos._udp.test.jp<br \/>\n_kerberos._udp.test.jp has SRV record 0 100 88 centos7.test.jp.<br \/>\n[root@centos7 ~]# host -t A centos7.test.jp.<br \/>\ncentos7.test.jp has address 192.168.1.8<br \/>\n[root@centos7 ~]# \/usr\/local\/samba\/bin\/smbclient -L localhost -U%<br \/>\n<a href=\"http:\/\/wp.study3.biz\/wp-content\/uploads\/2019\/07\/6a511100d20ac7e3de6c14e02f52bceb.txt\">CentOS7.6 \u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3057\u305fSamba4.9.11\u306e\u52d5\u4f5c\u78ba\u8a8d<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[root@centos7 ~]# \/usr\/local\/samba\/bin\/samba-tool domain provision Realm: TEST.JP Domain [TEST]: Server Role ( &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=12196\">\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":[19,9],"tags":[],"class_list":["post-12196","post","type-post","status-publish","format-standard","hentry","category-centos7","category-samba4"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12196","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=12196"}],"version-history":[{"count":2,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12196\/revisions"}],"predecessor-version":[{"id":12200,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12196\/revisions\/12200"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12196"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12196"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12196"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}