4. yum-prioritiesの導入
「smbldap tools」は、rpmforgeからyumでインストールします。通常使用するyumはデフォルトサイトから適用されるように、「yum-priorities」を導入します。
1) インストール
# yum -y install yum-priorities
2) 設定
# vi /etc/yum.repos.d/CentOS-Base.repo
各ディレクティブに「priority=1」を追記する。
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever – Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1
#released updates
[updates]
name=CentOS-$releasever – Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1
#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever – Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1
#additional packages that may be useful
[extras]
name=CentOS-$releasever – Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever – Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1
#contrib – packages by Centos Users
[contrib]
name=CentOS-$releasever – Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
priority=1
5. rpmforgeの導入
1) インストール
# rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
# rpm -ivh http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
2) 設定
# vi /etc/yum.repos.d/rpmforge.repo
各ディレクティブに「「priority=1」を追記する。
# Name: RPMforge RPM Repository for Red Hat Enterprise 5 – dag
# URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever – RPMforge.net – dag
#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
priority=10
6. smbldap-toolsの導入
1) インストール
# yum -y install smbldap-tools
以下がインストールされる
perl-Compress-Raw-Bzip2.i386 0:2.024-1.el5.rf
perl-Compress-Raw-Zlib.i386 0:2.024-1.el5.rf
perl-Crypt-SmbHash.noarch 0:0.12-1.2.el5.rf
perl-Digest-SHA1.i386 0:2.11-1.2.1
perl-HTML-Parser.i386 0:3.55-1.fc6
perl-HTML-Tagset.noarch 0:3.10-2.1.1
perl-IO-Compress.noarch 0:2.024-1.el5.rf
perl-IO-Socket-SSL.noarch 0:1.01-1.fc6
perl-Jcode.i386 0:2.06-1.el5.rf
perl-LDAP.noarch 1:0.33-3.fc6
perl-Net-SSLeay.i386 0:1.30-4.fc6
perl-Unicode-Map.i386 0:0.112-1.el5.rf
perl-Unicode-Map8.i386 0:0.13-1.el5.rf
perl-Unicode-MapUTF8.noarch 0:1.11-1.2.el5.rf
perl-Unicode-String.i386 0:2.09-1.2.el5.rf
perl-XML-NamespaceSupport.noarch 0:1.09-1.2.1
perl-XML-SAX.noarch 0:0.14-5
perl-libwww-perl.noarch 0:5.805-1.1.1
sambaldap tools の導入は以上になります。
次に、samba の設定を行います。