[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Versioning entries in the DIT



Lorenzo Pastrana wrote:

Hi, List

I'm planning to store some 'versioned' data into an ldap directory, and
trying not to reinvent the wheel ... if anybody has any good resource to
share on the subject I'll be glad to hear.

There's no standard or transparent way to do this. The most straightforward approach is to use a multi-valued RDN for your entries, e.g. instead of
cn=foo,o=example
use
cn=foo+id=1,o=example
cn=foo+id=2,o=example
and so on.


Except of course, that you can no longer reference entries without knowing their version number.

--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/