directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@apache.org>
Subject Re: Issue with entryCSN attribute and schema...
Date Mon, 01 Jun 2009 00:47:23 GMT
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



Mime
View raw message