There is no need to copy slapd.d file any more. Nothing, this is the new
way of configuration.
for more information please use it..
On Fri, Aug 8, 2014 at 7:04 PM, jupiter <jupiter.hce(a)gmail.com> wrote:
Thanks Vikas. I copied slapd.conf from /usr/share/openldap-servers,
modified it and removed /etc/openldap/slapd.d and run the slapadd -l
backup.ldif successfully. Should I mv /etc/openldap/slapd.d back and
remove /etc/openldap/slapd.conf before start the slapd service?
On 8/8/14, Vikas Parashar <para.vikas(a)gmail.com> wrote:
> 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
> *ldapadd* to do the same.
> 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(a)gmail.com> wrote:
>> 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
>> 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