[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Why cannot run slapadd -l backup.ldif which requires deprecated lsapd.conf?
- To: Vikas Parashar <para.vikas@gmail.com>
- Subject: Re: Why cannot run slapadd -l backup.ldif which requires deprecated lsapd.conf?
- From: jupiter <jupiter.hce@gmail.com>
- Date: Fri, 8 Aug 2014 23:34:39 +1000
- Cc: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TneMEHasRzzJtVnJ0EQiZ8nkAfUHr5VAKJlq8QfCIqI=; b=GWmCWGX1B0PJutEu2R3poJD/W7tLDJC2MhD2/GXqB4f99BeRfxG647Bx0F6wkYQDQQ ifO+B5C1YaAuzvbLQuIkEL0r5eVwmcnIEApq+PCp5FgwBK72bhAqWC+eBeCc5cVU5k3h rwBHQ7Rm+mJDanpPHsnpa/sciZW97jFfG5c71Cognn4ZREo1A8zL/JLq4Lq45RmNqN2C +XdzDbQqTjtfkqy8sNK0Cdgqi+eYYItEcRXvvjHYBt3dObISwDzay38+qCP3CJMz5U5k r/cywVKWS9IrBVhb8UZyjXilyn1dMxD/aGt25LxHBeeRUKPDjsLjY+duDXycH/M6PzN1 +IUg==
- In-reply-to: <CAGa4XmxP0wj87ohG8=4dFHFiQqCN-xxBrKV0PCnMWmsQ=OHR7Q@mail.gmail.com>
- References: <CAA=hcWT3CsYq1n28Sth6k_uRRZDVdLz6ByQH0m-i2=yhk8HmEw@mail.gmail.com> <CAGa4XmxP0wj87ohG8=4dFHFiQqCN-xxBrKV0PCnMWmsQ=OHR7Q@mail.gmail.com>
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?
Thanks.
- j
On 8/8/14, Vikas Parashar <para.vikas@gmail.com> wrote:
> 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
>>
>>
>