Hi,
there is way of configuration has been updated in newer version. In that case, you may see slapd.d directory under /etc/openldap folder. You may use *ldapadd* to do the same.
OR
If you are familiar with slapd.conf then you can move slapd.d directory somewhere and copy slapd.conf from /usr/share/openldap-servers directory.
if you will not slapd.conf anywhere, please use rpm -ql openldap-servers
May it will help you :P
Cheers> Vikas Parashar
On Fri, Aug 8, 2014 at 6:12 PM, jupiter jupiter.hce@gmail.com wrote:
Hi,
I am running openldap version 2.4.23 on CentOS 6.5, there is no slapd.conf, according to the document it is deprecated. But when I run slapadd, it got an error.
# slapadd -v -l /root/backup.ldif could not stat config file "/etc/openldap/slapd.conf": No such file or directory (2) slapadd: bad configuration file!
Now I am confused, if the slapd.conf is deprecated why the slapadd sdepends on it? How can I generate the slapd.conf, or copy a template of slpad.conf?
Thank you and appreciate your advice
- j