Sabtu, 27 Desember 2008

Konfigurasi Open LDAP Dengan Linux CentOS 5

#yum -y install *openldap*
#useradd
#passwd
#slappasswd
enter password :
{SSHA}/ZnS0ckeluc9qfSJi/n2wSRRaMuX4/fa
#vi /etc/openldap/slapd.conf
(isikan didalam shell)
database bdb
suffix "dc=yolly,dc=oke"
rootdn "cn=Manager,dc=yolly,dc=oke"
rootpw {SSHA}/ZnS0ckeluc9qfSJi/n2wSRRaMuX4/fa
#cp /etc/openldap/DB_CONFIG.example /var/lib/ldap/DB_CONFIG
#/etc/init.d/ldap restart
#chkconfig --level 12345 on
#grep root /etc passwd > /etc/openldap/root.passwd
#grep ade /etc/passwd > /etc/openldap/yolly.passwd
#vi /usr/share/openldap/migration/migrate_common.ph
(lalu cari baris berikut dan isikan)
$DEFAULT_MAIL_DOMAIN = "yolly.oke"
$DEFAULT_BASE = "dc=yolly,dc=oke"
#/usr/share/openldap/migration/migrate_passwd.pl /etc/openldap/root.passwd /etc/openldap/root.ldif
#/usr/share/openldap/migration/migrate_passwd.pl /etc/openldap/yolly.passwd /etc/openldap/yolly.ldif
#vi /etc/openldap/root.ldif
(isikan didalam shell)
dn: uid=root,ou=People,dc=yolly,dc=oke"
uid: root
cn: Manager
objectClass: account
#vi /etc/openldap/yolly.oke.ldif
dn: dc=yolly,dc=oke
dc: yolly
description: LDAP Admin
objectClass: top
objectClass: dcObject
objectClass: organizationalUnit
ou: rootobject
#vi /etc/openldap/people.yolly.oke.ldif
(isikan didalam shell)
dn: ou=People,dc=yolly,dc=oke
ou: People
ddesciption: user of yolly.oke
objectClass: organizationalUnit
#ldappadd -x -D "cn=Manager,dc=yolly,dc=oke" -W -f /etc/yolly.oke.ldif
#ldappadd -x -D "cn=Manager,dc=yolly,dc=oke" -W -f /etc/openldap/people.yolly.oke.ldif
#ldappadd -x -D "cn=Manager,dc=yolly,dc=oke" -W -f /etc/openldap/root.ldif
#ldappadd -x -D "cn=Manager,dc=yolly,dc=oke" -W -f /etc/openldap/ade.ldif

Buat group di Open LDAP#groupadd hrd
#useradd -g hrd ade
#passwd ade
Changing password for user ade
New Unix password : (samakan dengan password administrator)
BAD PASSWORD : it is based on a dictionary word
Retype new UNIX password : (samakan dengan password diatas)
passwd : all authentication tokens updates successfully
#grep hrd /etc/grup > /etc/openldap/hrd.gpasswd
#/usr/share/openldap/migration/migrate_group.pl /etc/openldap/hrd.gpasswd /etc/openldap/hrd.ldif
#vi /etc/openldap/hrd.ldif
#ldappadd -x -D "cn=Manager,dc=yolly,dc=oke" -W -f /etc/openldap/hrd.ldif

Referensi : http://howtoforge.com/linux_openldap_setup_server_client

2 komentar:

  1. ayo yoll truzzz tuangkan pengalaman perjuangan lo di blog ini slama berjuang di dunia si penguin.. biar qta tetep bisa knowledge sharing.. akher kata "KNOWLEDGE FOR HUMAN BEING"

    BalasHapus
  2. boleh nih buat jawab soal netadmin, he he
    gw copy ye!!

    BalasHapus