directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny" <elecha...@gmail.com>
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 :

1.3.6.1.4.1.<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.

Emmanuel

On 12/28/06, Tino Schwarze <tisc@in-chemnitz.de> 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:
> 1.3.6.1.4.1
> .<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.
>
> --
> www.quantenfeuerwerk.de
> www.spiritualdesign-chemnitz.de
> www.lebensraum11.de
>



-- 
Cordialement,
Emmanuel L├ęcharny
www.iktek.com

Mime
View raw message