Install Mandriva Directory Server : base plugins


Add repository dulu lah… kaya yang ini nih :

Mandriva 2009.0 http://blitar.linux.or.id/2008/12/17/mandriva-2009-add-repo/
Mandriva 2009.1 https://bayuart.wordpress.com/2009/06/04/mandriva-2009-1-update-repository/

Untuk daftar server repository Mandriva di Indonesia dengan IIX menyusul saja.

Untuk lebih jelas mengenai Mandriva Directory Server / mds, isa di cek langsung di situsnya di :

mds.mandriva.org

Langsung ke tahapan instalasi. Jangan lupa pake user “root”
Install paket mds :

[root@server1 box]# urpmi task-mds

In order to satisfy the ‘pylibacl’ dependency, one of the following packages is needed:

1- python-pylibacl-0.4.0-2mdv2009.1.i586: Posix ACL module for Python (to install)

2- pylibacl-0.4.0-1mdv2009.1.i586: Posix ACL module for Python (to install)

What is your choice? (1-2)

Langsung tekan “Enter” aja untuk instalasi default.

To satisfy dependencies, the following packages are going to be installed:

Package Version Release Arch

(medium “arsip_rilis”)

dhcp-server 4.1.0 5mdv2009.1 i586

mmc-agent 2.3.2 7mdv2009.1 i586

mmc-web-base 2.3.2 1mdv2009.1 noarch

mmc-web-mail 2.3.2 1mdv2009.1 noarch

mmc-web-network 2.3.2 1mdv2009.1 noarch

mmc-web-proxy 2.3.2 1mdv2009.1 noarch

mmc-web-samba 2.3.2 1mdv2009.1 noarch

nss_ldap 264 2mdv2009.1 i586

perl-Authen-SASL 2.12 2mdv2009.1 noarch

perl-Authen-Smb 0.91 11mdv2009.1 i586

perl-Convert-ASN1 0.22 1mdv2009.1 noarch

perl-ldap 0.39 1mdv2009.1 noarch

postfix-ldap 2.5.6 4mdv2009.1 i586

python-OpenSSL 0.8 1mdv2009.1 i586

python-ldap 2.3.5 2mdv2009.1 i586

python-mmc-base 2.3.2 7mdv2009.1 i586

python-mmc-mail 2.3.2 7mdv2009.1 i586

python-mmc-network 2.3.2 7mdv2009.1 i586

python-mmc-proxy 2.3.2 7mdv2009.1 i586

python-mmc-samba 2.3.2 7mdv2009.1 i586

python-pycrypto 2.0.1 8mdv2009.1 i586

python-pylibacl 0.4.0 2mdv2009.1 i586

python-twisted 8.2.0 1mdv2009.1 noarch

python-twisted-conch 8.2.0 1mdv2009.1 i586

python-twisted-core 8.2.0 1mdv2009.1 i586

python-twisted-lore 8.2.0 1mdv2009.1 i586

python-twisted-mail 8.2.0 1mdv2009.1 i586

python-twisted-names 8.2.0 1mdv2009.1 i586

python-twisted-news 8.2.0 1mdv2009.1 i586

python-twisted-runner 8.2.0 1mdv2009.1 i586

python-twisted-web 8.2.0 1mdv2009.1 i586

python-twisted-words 8.2.0 1mdv2009.1 i586

python-zope-interface 3.5.0 2mdv2009.1 i586

samba-server 3.3.2 3mdv2009.1 i586

squid 3.0 14mdv2009.1 i586

squidGuard 1.4 1mdv2009.1 i586

task-mds 2.3.2 1mdv2009.1 noarch

55MB of additional disk space will be used.

12MB of packages will be retrieved.

Proceed with the installation of the 37 packages? (Y/n)

Ingat, proses diatas kemungkinan tidak akan sama persis di lokasi masing-masing. Kenapa ? karena ada beberapa aplikasi yang sudah terpasang/terinstall atau belum terinstall di masing-masing komputer.

Lanjut ke install paket openldap-server :

[root@server1 box]# urpmi openldap-server

To satisfy dependencies, the following packages are going to be installed:

Package Version Release Arch

(medium “arsip_rilis”)

db47-utils 4.7.25 3mdv2009.1 i586

openldap-servers 2.4.16 1mdv2009.1 i586

3.5MB of additional disk space will be used.

1.1MB of packages will be retrieved.

Proceed with the installation of the 2 packages? (Y/n)

Generating self-signed certificate…

To generate a self-signed certificate, you can use the utility

/usr/share/openldap/gencert.sh…

Trus :

[root@server1 box]# urpmi openldap-mandriva

To satisfy dependencies, the following packages are going to be installed:

Package Version Release Arch

(medium “arsip_rilis”)

openldap-clients 2.4.16 1mdv2009.1 i586

(medium “arsip_contrib”)

openldap-mandriva-dit 0.17 4mdv2009.1 i586

600KB of additional disk space will be used.

152KB of packages will be retrieved.

Proceed with the installation of the 2 packages? (Y/n)

Setelah itu jalankan script otomatis konfigurasi ldap server untuk mandriva mds nya :

[root@server1 box]# /usr/share/openldap/scripts/mandriva-dit-setup.sh

Please enter your DNS domain name [bayu.com]:

(isi dengan nama domain, misal bayu.com)
Lanjutannya :

Administrator account

The administrator account for this directory is

uid=LDAP Admin,ou=System Accounts,dc=semusim,dc=info

Please choose a password for this account:

New password:

Summary

=======

Domain: bayu.com

LDAP suffix: dc=bayu,dc=com

Administrator: uid=LDAP Admin,ou=System Accounts,dc=semusim,dc=info

Confirm? (Y/n)

config file testing succeeded

_#################### 100.00% eta none elapsed none fast!

Stopping ldap service

_#################### 100.00% eta none elapsed none fast!

Closing DB…

Finished, starting ldap service

Starting slapd (ldap + ldaps): [ OK ]

Your previous database directory has been backed up as /var/lib/ldap.1245202731

All files that were backed up got the suffix “1245202731”.

Ingat jangan lupa password nya, soalnya ni password akan berguna untuk konfigurasi selanjutnya.

Masuk ke direktori cd /usr/share/doc/python-mmc-base/contrib/ldap/ , kemudian salin file .schema dnszone.schema mail.schema mmc.schema ke /etc/openldap/schema/

#cd /usr/share/doc/python-mmc-base/contrib/ldap/
#cp dhcp.schema dnszone.schema mail.schema mmc.schema /etc/openldap/schema/

Kemudian edit file /etc/openldap/schema/local.schema

[root@server1 box]# vim /etc/openldap/schema/local.schema

Tanbahkan baris ini :

include /usr/share/openldap/schema/mmc.schema

include /usr/share/openldap/schema/mail.schema

include /usr/share/openldap/schema/dnszone.schema

include /usr/share/openldap/schema/dhcp.schema


Simpan, trus edit file /etc/openldap/slapd.conf

[root@server1 box]# vim /etc/openldap/slapd.conf

Cari baris di bawah ini, dan kasih comment

#include /usr/share/openldap/schema/misc.schema

#include /usr/share/openldap/schema/kolab.schema

#include /usr/share/openldap/schema/dnszone.schema

#include /usr/share/openldap/schema/dhcp.schema

Lanjutkan mengedit file /etc/openldap/mandriva-dit-access.conf

[root@server1 box]# vim /etc/openldap/mandriva-dit-access.conf

Ubah seperti baris dibawah ini :

#access to dn.one=”ou=People,dc=mandriva,dc=com”

# attrs=@inetLocalMailRecipient,mail

# by group.exact=”cn=MTA Admins,ou=System Groups,dc=mandriva,dc=com” write

# by * read

Restart ldap server kita :

[root@server1 schema]# service ldap restart

Checking config file /etc/openldap/slapd.conf: [ OK ]

Stopping slapd: [ OK ]

Starting slapd (ldap + ldaps): [ OK ]

[root@server1 schema]#

(bersambung)


2 comments

  1. ok thanks bos atas informasinya , nambah ilmu lagi nih salam kenal ya

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: