[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: slaptest-ldif -l <ldif> tool or slapadd option
- To: openldap-devel@openldap.org
- Subject: Re: slaptest-ldif -l <ldif> tool or slapadd option
- From: Emmanuel Lécharny <elecharny@gmail.com>
- Date: Wed, 25 Mar 2015 00:56:00 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ubVpttkjguN0xG6U7q3kphC5zt5SNgtH/dsNO98RCvQ=; b=BpFzzNH0rSJAS+RN49KhtTsJIJ+VtrC7S+fJr8AL8mXJRdfHfKOkwWhuFNu4ExRsaK xOqi4y3CtCWXtLumglibBfWJ08x+ip86J6MOaOMD3UZ9z8j+qJNQsji+IzIcnA0ngnvc 1MnL5DMQnLULEkv8YXm38w+Z44T/DiHZ8zBryodebbcO2URF3792fyMb8J/S6RSkiKn+ 3DwA6KvMV4iux/51iHNYFiy2G6uA0zEscj+CxRHT0EZ+AgQDNmEuNUwADYHpXaGfQ22S ebb42ngOcNbSgTHY17PMoSbFtcAW6QhOr2L70VpVSEQ1YibMh+7Zdy18Vh3dnuoy6wEj dZ0Q==
- In-reply-to: <5511EB83.2030607@symas.com>
- References: <hbf.20150324f6rv@bombur.uio.no> <5511EB83.2030607@symas.com>
- User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
Le 24/03/15 23:56, Howard Chu a écrit :
> Hallvard Breien Furuseth wrote:
>> I'd like a slap tool which verifies an LDIF before I try to
>> ldapadd/slapadd it.
>> "slapadd -u -o value-check=yes" is fairly close. What does it fail
>> to catch?
>> I can think of:
>>
>> - Duplicate entries.
>
> Quite an unrealistic requirement. You need to store the set of
> entryDNs to achieve this, and for a large LDIF you may need an actual
> database to manage this. Might as well just do a normal slapadd.
Let me disagree. A simple merge sort will do the trick. No need of a
database to deal with that, even for a large LDIF. We have done some
tests with the tool we use to handle bulkloads at ApacheDS, and that
works quite fine, and quite fast enough.