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

Re: [Models] An attribute value should be equal to self




Hallvard,

Hallvard B Furuseth wrote:
Steven Legg <steven.legg@eb2bcom.com>

I will have to review that discussion yet again soon...

It was a short thread:
http://www.openldap.org/lists/ietf-ldapbis/200411/msg00190.html


Ah, thanks.

Kurt D. Zeilenga writes:

At 05:20 PM 3/7/2005, Steven Legg wrote:

I dislike it too. I would prefer that LDAPprep removes troublesome
characters instead of failing.


I'm not sure that is right; it might be better to translate them to some
otherwise unused character or leave them alone or something.

You're right. Removing the troublesome characters means that a string with "garbage" will match a string without "garbage". I'd suggest mapping to something like the replacement character rather than leaving the characters alone for the reason that two distinct bad sequences might one day be made equivalent, which would then present a problem if an attribute already has both as values.

> Or let
EQUALITY match use a fallback which does not do LDAPprep if LDAPprep
fails, like Rici suggested.

That's fine for equality matching but could dramatically change the collation order for ordering matches. If two values are the same except for some final bad characters then it is desirable for them to still be close in the collation order.

Regards,
Steven