Auto increment value

Can i use an auto increment value in ldap entry?For example i can insert, for each ldap entry, an id that is different from the previous one.Thanks
[168 byte] By [suuupera] at [2007-11-27 8:34:43]
# 1

> Can i use an auto increment value in ldap entry?

> For example i can insert, for each ldap entry, an id

> that is different from the previous one.

>

> Thanks

I don't think that there is a "built-in" way to do this, but I have seen several methods for doing this. One way is to use a primary/unique key from another system (i.e. an employee number from an HR database), another way is to create a GUID for each object prior to creating it in the Directory. You can muck around in the schema to set a attribute globally unique, if you want to avoid doing the lookup for an existing entry when you create a new one.

mckinga at 2007-7-12 20:31:01 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
There is no such functionality in LDAP nor Sun Directory Server.But you could write your own pre-operation plug-in to implement this feature for your deployment.Regards,Ludovic.
ludovicpa at 2007-7-12 20:31:01 > top of Java-index,Web & Directory Servers,Directory Servers...