directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny" <>
Subject Re: OID size limit?
Date Thu, 28 Dec 2006 14:56:50 GMT
Hi Tino,

so far, OID parts are stored in java long, so into the interval [-2^63,
2^63-1]. You can use up to 19 digits for an element of an OID, so your
sample won'ty be accepted.

If you want to generate "random" OID, what I suggest is that you store 32
bits values separated by a '.', like :<myprivateOID>.0.<first 32 bits value>.<second 32 bits value>.
... .<last 32 bits value>.

Do also remember that, in LDAP, OID are used to declare new attribute types,
so creating arbitrary long OID does not make a lot of sense, but as I'm not
aware of all the possible use-cases...

 I would be very interested to know why you need such OID values.


On 12/28/06, Tino Schwarze <> wrote:
> Hi there,
> is there any known limitation of OID size or the size of an OID part?
> I'm going to use auto-generated OIDs and they will look like:
> .<myprivateOID>.0.8228681198498217497059596.0.7212074495361812662326490325180684
> The OID BNF grammar doesn't specify any limits, so I'm only wondering
> whether there are known real-life limits. Will performance be affected
> by these monsters?
> Thank you,
> Tino.
> --

Emmanuel L├ęcharny

View raw message