You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Emmanuel Lecharny <el...@apache.org> on 2009/06/01 02:47:23 UTC

Re: Issue with entryCSN attribute and schema...

Howard Chu wrote:
> Emmanuel Lecharny wrote:
>> Hi guys,
>>
>> as I'm trying to inject some operationalAttributes in every entries, I
>> face an interesting problem. Obviously, the schema elements must also
>> have an entryUUID and entryCSN attributes. For entryUUID, there is no
>> problem, so far, but for entryCSN, that's not the same story... As this
>> AT is built based on the local instance (the SID is part of the CSN), we
>> can't anymore use the pre-built schema partition, as it's totally
>> instance agnostic.
>>
>> We have options though :
>> - defining a special sid for such entries, 0xFFF for instance. It's very
>> unlikely that we will see any day such a number used for CSN.
>> - get rid of this pre-built partition. We load the schema dynamically on
>> server startup, and inject CSN at startup
>> - modify the entryCSN for those entries at startup, to inject the
>> current SID
>
> Currently OpenLDAP treats SID 0 as unused/single-master. I don't think 
> there's any issue in initializing these entries with SID 0, as long as 
> the real SID is used when any modifications are made.
Probably an option. I didn't like the idea to use 0 for the unused SID? 
but maybe I'm biased, thinking that everything on earth is like an 
array, starting at 0 !!!

Thanks Howard !

-- 
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org