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

Re: [ldapext] Sorted attribute values



Richard Megginson wrote:
Would it be possible to use attribute subtypes for the weights? This could possibly solve a problem for many LDAP users - how to store a list of multiple values in order and have the server return them in the same order.

Hm, did you mean actual subtypes, or just attribute options? Something like

foo;x-weight-10: Animal
foo;x-weight-3: Vegetable
foo;x-weight-1: Mineral

That's an interesting idea, although it would still confuse older clients that only look for the attribute "foo" in the search responses.

Or did I misunderstand the suggestion?

So, given an attribute
foo: {10}Animal
foo: {3}Vegetable
foo: {1}Mineral

a search response with weighted sorting would return
foo: Mineral
foo: Vegetable
foo: Animal


--
  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc
  OpenLDAP Core Team            http://www.openldap.org/project/

_______________________________________________
Ldapext mailing list
Ldapext@ietf.org
https://www1.ietf.org/mailman/listinfo/ldapext