
Openldap on Red Hat Enterprise 6 has changed the new configuration file, which is a configuration tree style. If you has configured the Openldap in RHEL5 you may be confused when you completely configured for the slapd.conf and start ldap service, then use ldapadd or ldapsearch command for query data but it shown error “ldapadd ldap_bind: Invalid credentials (49)“. So, in this article I will give the way for solve the problem.
Before walkthrough on the configuration step you should to know that /etc/openldap/slapd.d/ is directory for store the new configuration files. 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 slapd.conf.
After all the steps you can start the slapd service and then try to use ldapsearch and ldapadd again.


June 12th, 2011
Tum.
Posted in
Tags:
you are the god
It works for me ………..
thanks
Thanks o lot, very helpful, I was “rambling” aroud and this post saved me.
a great appreciation from a Chinese!!!
It’s really helpful. Thanks
thnks bro……….
in simple 4 steps, cured my headache….!
But this not help to me .
I still see this message:
ldap_bind: Invalid credentials (49)
it’s usefull thanks dear….
Thanks man, you save me. great solution.
mmm a mi no me ha quedado y creo saber cual es un de mis problema despues de haber ejecutado este comando
rm -rf /etc/openldap/slapd.d/*
asta ahi todo bien pero despues al ejecutar el siguiente paso me manda un error
slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d
could not stat config file “/etc/openldap/schema/intorgperson.schema”: No such file or directory (2)
slaptest: bad configuration directory!
same issue , anyone can help us to resolve the issue in rhel6.1
rm -rf /etc/openldap/slapd.d/*
asta ahi todo bien pero despues al ejecutar el siguiente paso me manda un error
slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d
could not stat config file “/etc/openldap/schema/intorgperson.schema”: No such file or directory (2)
slaptest: bad configuration directory!
Many thanks for the actual excellent writeup. The item in reality was some sort of fun account this. Look difficult to be able to additional launched flexible from you finding out! Nonetheless, precisely how can most of us be in contact?