Otherwise, an other idea would be to implement a trigger and a SP : when an add request arrives with, say, a missing uidNumber (if it's a mandatory AT), then it search for the biggest uidNumber, increment it, and inject the missing uidNumber into the entry.
A bit like the OpenLDAP autoIncrement overlay do. On Tue, Jan 13, 2009 at 5:20 PM, Stefan Seelmann <[email protected]> wrote: > Hi Pierre-Arnaud, > > there is a Modify-Increment Extension, see > http://tools.ietf.org/html/rfc4525. Not sure which LDAP servers implement > it. > > Kind Regards, > Stefan > > Quoting Pierre-Arnaud Marcelot <[email protected]>: > >> Hi guys, >> >> I have a tricky question which is not really related specifically to >> ApacheDS but more LDAP specific. >> >> I'm working on porting to LDAP a kind of RBAC API for handling Users, >> Rights >> and Applications which is based on a relational database. >> >> Most of these objects are based on an integer primary key (and an >> auto-increment property placed on the associated table) that I need to >> keep >> when porting the API. >> The problem is LDAP servers does not know about "auto-increment" IDs. >> >> Do you have any recommended design pattern for solving such a problem? >> >> Regards, >> Pierre-Arnaud >> > > > > -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
