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.
At least, these are the options I'm considering right now. I don't think
we have time to implement (2) atm, so my guts tell me that option (1) is
probably the best for the moment.
thoughts ?
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/