[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ldap
Subject:    [ldap] Re: Defining 'Range' and 'width' for an integer
From:       "Kurt D. Zeilenga" <Kurt () OpenLDAP ! org>
Date:       2006-01-26 16:46:33
Message-ID: 7.0.0.16.0.20060126082933.0226e278 () OpenLDAP ! org
[Download RAW message or body]

At 05:57 AM 1/26/2006, Francis Swasey wrote:
> On 1/26/06 7:15 AM, qazmlp wrote:
> > While defining the 'Attribute definition' for schema, is it possible to
> > define range of allowed values for the attributes?

For LDAP, yes, via the atttribute value syntax.  But...

If you want the directory to restrict values of foo to integer
values 1 to 50, you need to define an ASN.1 type that specifies
that restriction:
        1toFifty ::= INTEGER ( 1 .. 50 )
and than specify which OID refers to that ASN.1:
        ( 1.1.1 DESC 'integer values 1 to 50 )
and then you should register the syntax with IANA, and finally
you need to extend whatever directory servers and clients
you are using to recognize and support this syntax.

In short, some specification and coding is required (at least
at present).

Kurt 


---
You are currently subscribed to ldap@umich.edu as: [ldap@progressive-comp.com]
To unsubscribe send email to ldap-request@umich.edu with the word UNSUBSCRIBE as the \
SUBJECT of the message.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic