{"id":12880,"date":"2015-07-01T10:59:57","date_gmt":"2015-07-01T01:59:57","guid":{"rendered":"https:\/\/wp.study3.biz\/?p=12880"},"modified":"2022-08-26T09:26:39","modified_gmt":"2022-08-26T00:26:39","slug":"centos6-6%e3%81%absamba4%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%97%e3%81%a6active-directory%e4%ba%92%e6%8f%9b%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%82%92%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"https:\/\/wp.study3.biz\/?p=12880","title":{"rendered":"Centos6.6\u306bsamba4\u3092\u5c0e\u5165\u3057\u3066Active Directory\u4e92\u63db\u30c9\u30e1\u30a4\u30f3\u3092\u69cb\u7bc9"},"content":{"rendered":"<p>Centos6.6\u306byum\u3067samba4.2.2\u3092\u5c0e\u5165\u3059\u308b<\/p>\n<p>\u6700\u521d\u306bifconfig\u3067ip\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3057\u3066resolv.conf\u3092\u8a2d\u5b9a\u3059\u308b\u3002\u6b21\u306bsamba\u3092\u5c0e\u5165\u3059\u308b\u305f\u3081\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306f<a href=\"http:\/\/wingse.blog57.fc2.com\/blog-entry-293.html\">http:\/\/wingse.blog57.fc2.com\/blog-entry-293.html<\/a>\u3092\u53c2\u8003\u306b\u3057\u305f\u3002# cd \/etc\/yum.repos.d\/ # wget http:\/\/wing-net.ddo.jp\/wing\/6\/EL6.wing.repo\u00a0 # yum clean all\u00a0 samba\u306einstall \u306f# yum -y &#8211;enablerepo=wing install samba42-\u3000\u3068\u3059\u308b\u304csamba3\u304c\u6b8b\u3063\u3066\u3044\u308b\u306e\u3067\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3002# yum -y remove samba-common samba-winbind-clients samba-client sssd sssd-common samba4-libs\u3068\u3057\u3066\u4e0d\u8981\u306a\u3082\u306e\u3092\u524a\u9664\u3001\u307e\u305f\u4eca\u56desamba4.2\u3092\u5c0e\u5165\u306b\u5f53\u305f\u3063\u3066\u306f# wget http:\/\/download.gluster.org\/pub\/gluster\/glusterfs\/LATEST\/EPEL.repo\/glusterfs-epel.repo -P \/etc\/yum.repos.d\u3092\u8ffd\u52a0\u5f8c\u3000\u518d\u5ea6\u3001#\u00a0 yum -y &#8211;enablerepo=wing install samba42-\u3000\u3067samba4.2.2\u3092install\u3002<\/p>\n<p>\u6b21\u306b# samba-tool domain provision\u3067Active Directory\u30c9\u30e1\u30a4\u30f3\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u4f8b\u3068\u3057\u3066test.jp\u3092\u30c9\u30e1\u30a4\u30f3\u3068\u3057\u307e\u3059\u3002Realm TEST.JP\u00a0 Domain [TEST]: Server Role (dc,member, standalone)[dc]:DNS backend (SAMBA_INTERNAL,BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]:\u00a0DNS forwarder IP address (write &#8216;none&#8217; to disable forwarding) [192.168.132]:\u00a0Administrator password: Retype password:\u4e2d\u7565\u3000Server Role:\u3000active directory domain controller Hostname:cent NetBIOS Domain:test DNS Domain:test.jp DOMAIN SID:S-1-5-21-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXX\u3068\u306a\u308a\u307e\u3059\u3002\u6b21\u306bcp\u3000\/var\/lib\/samba\/private\/krb5.conf\u3000\/etc\/krb5.conf\u3068\u3000\/etc\/krb5.conf\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306bsamba\u8d77\u52d5\u3067\u3059\u3002samba -i -M single \u3067\u8d77\u52d5\u3055\u305b\u307e\u3059\u3002$ kinit administrator Password for <a class=\"moz-txt-link-abbreviated\" href=\"mailto:administrator@TEST.JP\">administrator@TEST.JP<\/a>: # smbclient -L localhost -U% Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.2]\u00a0 # smbclient \/\/localhost\/netlogon -UAdministrator Enter Administrator&#8217;s password: Domain=[TEST] OS=[Windows 6.1] Server=[Samba 4.2.2] \u3068kinit\u8a8d\u8a3cOK \u307e\u305fsamba4.2.2\u3067\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u307e\u3057\u305f\u3002$ host -t SRV <em>ldap._tcp.test.jp \u3000_ldap._tcp.test.jp has SRV record 0 100 389 cent.test.jp. $ host -t SRV _kerberos._udp.test.jp\u3000 _kerberos._udp.test.jp has SRV record 0 100 88 cent.test.jp.\u3000\u3000\u3000$ host -t A cent.test.jp.\u3000 cent.test.jp has address 192.168.1.132 \u3068Active Directory\u30c9\u30e1\u30a4\u30f3\u3068\u3057\u3066\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002\u307e\u305fsamba4\u3092\u30bd\u30fc\u30b9\u304b\u3089install\u3059\u308b\u5834\u5408\u306b\u3064\u3044\u3066<a href=\"http:\/\/case-of-t.net\/2012\/12\/25\/samba-ad-dc-howto\/#Configure_.2Fetc.2Fresolv.conf\">http:\/\/case-of-t.net\/2012\/12\/25\/samba-ad-dc-howto\/#Configure<\/em>.2Fetc.2Fresolv.conf<\/a>\u306b\u8a73\u3057\u304f\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Centos6.6\u306byum\u3067samba4.2.2\u3092\u5c0e\u5165\u3059\u308b \u6700\u521d\u306bifconfig\u3067ip\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3057\u3066resolv.conf\u3092\u8a2d\u5b9a\u3059\u308b\u3002\u6b21\u306bsamba\u3092\u5c0e\u5165\u3059\u308b\u305f\u3081\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306fhttp:\/\/wing &hellip; <a href=\"https:\/\/wp.study3.biz\/?p=12880\">\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":[20,9],"tags":[],"class_list":["post-12880","post","type-post","status-publish","format-standard","hentry","category-centos6","category-samba4"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12880","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=12880"}],"version-history":[{"count":2,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12880\/revisions"}],"predecessor-version":[{"id":12884,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=\/wp\/v2\/posts\/12880\/revisions\/12884"}],"wp:attachment":[{"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.study3.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}