CentOS 6 : ldapadd ldap_bind: Invalid credentials (49)

OpenLDAP di CentOS 6 ternyata telah berubah menggunakan gaya RTC yang menyimpan berkas konfigurasinya dalam direktori slapd.d/ dan saya sama sekali belum mengerti bagaimana menggunakannya.
Akibatnya setelah yakin mengkonfigurasi slapd.conf yang dikopi dari server lama.. ldap server ini tidak juga berfungsi, bahkan ketika menggunakan ldapadd sbg admin pun tidak bisa dan muncul pesan error ldap_bind: Invalid credentials (49)

dari hasil googling ketemu link ini

Before walkthrough on the configuration step you should to know that /etc/openldap/slapd.d/ is directory for store the new configuration file. By default it has provided example configuration on this directory. If you worry about how to configure a new ldap configuration style, you should relaxed and walk-through this step below for reach the new configuration style.

Delete all files in directory /etc/openldap/slapd.d/ with the command

[root@ezylinux ~]# rm -rf /etc/openldap/slapd.d/*

Run slaptest for test the configuration file and create new configuration in directory /etc/openldap/slapd.d/.

[root@ezylinux ~]# slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d

Set permissions for a new configuration file.

[root@ezylinux ~]# chown -R ldap:ldap /etc/openldap/slapd.d
[root@ezylinux ~]# chmod -R 000 /etc/openldap/slapd.d
[root@ezylinux ~]# chmod -R u+rwX /etc/openldap/slapd.d

Finally, delete or rename files slapd.conf.
After all the steps you can start the slapd service and then try to use ldapsearch and ldapadd again.

About Ronald Gautama

Abnormal Miscreated

Posted on Oktober 7, 2011, in LiNUX, Tutorsial. Bookmark the permalink. 1 Komentar.

  1. “CentOS 6 : ldapadd ldap_bind: Invalid credentials (49) Joss ngGedhebuzz” was a superb blog post and I
    personally was extremely pleased to come across the blog post.
    Thanks for your time,Curtis

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: