[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: design issue...

Le lun 24/03/2003 à 16:06, George Mardale a écrit :
> Hi everybody,
> I need to store some objects in an LDAP server. Each object is called a
> 'resource' and it has an unlimited number of attributes, meaning that these
> attributes are not known when designing the data model of the ldap server.
> The attributes come in name/value pairs, similar to a hashtable (e.g.
> name=XXX, value=YYY; name=ZZZ, value=...). Multiple applications use the
> LDAP server for publishing/searching resources, each one may have different
> attributes.
> Is there any way to define a schema that accepts an object class having an
> unlimited number of attributes (sort of runtime attributes)? Is this
> possible in an LDAP server? Are there any other approaches that should be
> considered when implementing this issue?

one simple and dirty way I am thinking of is to have one attribute named
(for example) hashtable that can have multiple values, and that receives
the name and the value of each new attribute, separated with blank
For example :

dn: cn=resource1,dc=your,dc=domain
objectclass: resource
hashtable: attribute1 value1
hashtable: attribute2 value2
hashtable: attribute3 value3
hashtable: attribute4 value4



> Thanks for your time,
> George.